put it back the way it was

git-svn-id: https://svn.musicpd.org/mpd/trunk@202 09075e82-0dd4-0310-85a5-a0d7c8717e4f
This commit is contained in:
Warren Dukes 2004-03-05 13:01:58 +00:00
parent cc23d2e7e9
commit 170824db8c
1 changed files with 5 additions and 4 deletions

View File

@ -501,13 +501,14 @@ int mp3Read(mp3DecodeData * data, Buffer * cb, DecoderControl * dc) {
}
}
while((ret=decodeNextFrameHeader(data))==DECODE_CONT ||
ret==DECODE_SKIP);
if(ret==DECODE_OK && !data->muteFrame) {
if(data->muteFrame) {
while((ret=decodeNextFrameHeader(data))==DECODE_CONT ||
ret==DECODE_SKIP);
}
else {
while((ret=decodeNextFrame(data))==DECODE_CONT ||
ret==DECODE_SKIP);
}
if(ret==DECODE_SKIP) data->muteFrame = 1;
return ret;
}