fix a booboo
git-svn-id: https://svn.musicpd.org/mpd/trunk@204 09075e82-0dd4-0310-85a5-a0d7c8717e4f
This commit is contained in:
parent
1cf07bfa40
commit
a8d3895e32
|
@ -506,10 +506,10 @@ int mp3Read(mp3DecodeData * data, Buffer * cb, DecoderControl * dc) {
|
||||||
skip = 0;
|
skip = 0;
|
||||||
while((ret = decodeNextFrameHeader(data))==DECODE_CONT);
|
while((ret = decodeNextFrameHeader(data))==DECODE_CONT);
|
||||||
if(ret==DECODE_SKIP) skip = 1;
|
if(ret==DECODE_SKIP) skip = 1;
|
||||||
else if(ret==DECODE_BREAK) return -1;
|
else if(ret==DECODE_BREAK) break;
|
||||||
if(data->muteFrame) {
|
if(data->muteFrame) {
|
||||||
while((ret = decodeNextFrame(data))==DECODE_CONT);
|
while((ret = decodeNextFrame(data))==DECODE_CONT);
|
||||||
if(ret==DECODE_BREAK) return -1;
|
if(ret==DECODE_BREAK) break;
|
||||||
}
|
}
|
||||||
if(!skip && ret==DECODE_OK) break;
|
if(!skip && ret==DECODE_OK) break;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue