mute all frames that are "SKIP"'d
git-svn-id: https://svn.musicpd.org/mpd/trunk@201 09075e82-0dd4-0310-85a5-a0d7c8717e4f
This commit is contained in:
parent
db82d2fc8c
commit
cc23d2e7e9
@ -501,12 +501,13 @@ int mp3Read(mp3DecodeData * data, Buffer * cb, DecoderControl * dc) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if(data->muteFrame) {
|
|
||||||
while((ret=decodeNextFrameHeader(data))==DECODE_CONT ||
|
while((ret=decodeNextFrameHeader(data))==DECODE_CONT ||
|
||||||
ret==DECODE_SKIP);
|
ret==DECODE_SKIP);
|
||||||
}
|
if(ret==DECODE_OK && !data->muteFrame) {
|
||||||
else while((ret=decodeNextFrame(data))==DECODE_CONT ||
|
while((ret=decodeNextFrame(data))==DECODE_CONT ||
|
||||||
ret==DECODE_SKIP);
|
ret==DECODE_SKIP);
|
||||||
|
}
|
||||||
|
if(ret==DECODE_SKIP) data->muteFrame = 1;
|
||||||
|
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user