Commit 6ced857c authored by Erik de Castro Lopo's avatar Erik de Castro Lopo
Browse files

libFLAC: Fix decoder_flush with uninitialized decoder

parent cf7442d6
......@@ -936,6 +936,9 @@ FLAC_API FLAC__bool FLAC__stream_decoder_flush(FLAC__StreamDecoder *decoder)
FLAC__ASSERT(0 != decoder->private_);
FLAC__ASSERT(0 != decoder->protected_);
if(!decoder->private_->internal_reset_hack && decoder->protected_->state == FLAC__STREAM_DECODER_UNINITIALIZED)
return false;
decoder->private_->samples_decoded = 0;
decoder->private_->do_md5_checking = false;
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment