set state to SEARCH_FOR_FRAME_SYNC after flush
authorJosh Coalson <jcoalson@users.sourceforce.net>
Thu, 1 Nov 2001 05:23:48 +0000 (05:23 +0000)
committerJosh Coalson <jcoalson@users.sourceforce.net>
Thu, 1 Nov 2001 05:23:48 +0000 (05:23 +0000)
src/libFLAC/stream_decoder.c

index ce17939..29bb6a9 100644 (file)
@@ -343,6 +343,7 @@ FLAC__bool FLAC__stream_decoder_flush(FLAC__StreamDecoder *decoder)
                decoder->protected_->state = FLAC__STREAM_DECODER_MEMORY_ALLOCATION_ERROR;
                return false;
        }
+       decoder->protected_->state = FLAC__STREAM_DECODER_SEARCH_FOR_FRAME_SYNC;
 
        return true;
 }