fix bug where flush() was not setting the state back to OK
authorJosh Coalson <jcoalson@users.sourceforce.net>
Fri, 26 Jul 2002 05:26:18 +0000 (05:26 +0000)
committerJosh Coalson <jcoalson@users.sourceforce.net>
Fri, 26 Jul 2002 05:26:18 +0000 (05:26 +0000)
src/libFLAC/seekable_stream_decoder.c

index e617ab7..cf7957a 100644 (file)
@@ -499,6 +499,8 @@ FLAC__bool FLAC__seekable_stream_decoder_flush(FLAC__SeekableStreamDecoder *deco
                return false;
        }
 
+       decoder->protected_->state = FLAC__SEEKABLE_STREAM_DECODER_OK;
+
        return true;
 }