diff options
author | Warren Dukes <warren.dukes@gmail.com> | 2004-05-20 04:04:10 +0000 |
---|---|---|
committer | Warren Dukes <warren.dukes@gmail.com> | 2004-05-20 04:04:10 +0000 |
commit | 05889aa3e337ac264c185dd60cec5e5071fe0a31 (patch) | |
tree | 302805ee762c1f8e9105eaab507442a72ab05d0d | |
parent | 52d4200cb1f841932dc097127258c522dd018a13 (diff) | |
download | mpd-05889aa3e337ac264c185dd60cec5e5071fe0a31.tar.gz mpd-05889aa3e337ac264c185dd60cec5e5071fe0a31.tar.xz mpd-05889aa3e337ac264c185dd60cec5e5071fe0a31.zip |
more little mp3 seeking fixes
git-svn-id: https://svn.musicpd.org/mpd/trunk@1107 09075e82-0dd4-0310-85a5-a0d7c8717e4f
-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) { |