mirror of
https://github.com/claunia/flac.git
synced 2025-12-16 18:54:26 +00:00
fix bug when seeking a file that is already at END_OF_FILE
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user