fix bug when seeking a file that is already at END_OF_FILE

This commit is contained in:
Josh Coalson
2002-01-29 17:56:03 +00:00
parent ae84212bd5
commit 6cca87bb7b
2 changed files with 11 additions and 9 deletions

View File

@@ -404,7 +404,7 @@ FLAC__bool FLAC__seekable_stream_decoder_seek_absolute(FLAC__SeekableStreamDecod
FLAC__uint64 length;
FLAC__ASSERT(decoder != 0);
FLAC__ASSERT(decoder->protected_->state == FLAC__SEEKABLE_STREAM_DECODER_OK);
FLAC__ASSERT(decoder->protected_->state == FLAC__SEEKABLE_STREAM_DECODER_OK || decoder->protected_->state == END_OF_STREAM);
decoder->protected_->state = FLAC__SEEKABLE_STREAM_DECODER_SEEKING;