diff options
-rw-r--r-- | src/mp3_decode.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mp3_decode.c b/src/mp3_decode.c index c2dd1f8f4..7b40461a9 100644 --- a/src/mp3_decode.c +++ b/src/mp3_decode.c @@ -509,7 +509,7 @@ int mp3Read(mp3DecodeData * data, OutputBuffer * cb, DecoderControl * dc) { } } - if(dc->seek) { + if(dc->seek && data->inStream->seekable) { long i = 0; data->muteFrame = MUTEFRAME_SEEK; while(i<data->highestFrame && dc->seekWhere > @@ -525,12 +525,12 @@ int mp3Read(mp3DecodeData * data, OutputBuffer * cb, DecoderControl * dc) { clearOutputBuffer(cb); dc->seekChunk = cb->end; data->currentFrame = i; - data->muteFrame = 0; } + data->muteFrame = 0; dc->seek = 0; } - else if(!data->inStream->seekable) dc->seek = 0; } + else if(dc->seek && !data->inStream->seekable) dc->seek = 0; } while(1) { |