more little mp3 seeking fixes

git-svn-id: https://svn.musicpd.org/mpd/trunk@1107 09075e82-0dd4-0310-85a5-a0d7c8717e4f
This commit is contained in:
Warren Dukes 2004-05-20 04:04:10 +00:00
parent 52d4200cb1
commit 05889aa3e3

View File

@ -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) {