aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorWarren Dukes <warren.dukes@gmail.com>2004-03-05 13:01:58 +0000
committerWarren Dukes <warren.dukes@gmail.com>2004-03-05 13:01:58 +0000
commit170824db8c3f97ef6b5c1dbf8a527199acf0bb88 (patch)
tree50c073a1b06f03f8c503f3d8420352af844f848c /src
parentcc23d2e7e92d2e5165e998ff7e2e96a952205334 (diff)
downloadmpd-170824db8c3f97ef6b5c1dbf8a527199acf0bb88.tar.gz
mpd-170824db8c3f97ef6b5c1dbf8a527199acf0bb88.tar.xz
mpd-170824db8c3f97ef6b5c1dbf8a527199acf0bb88.zip
put it back the way it was
git-svn-id: https://svn.musicpd.org/mpd/trunk@202 09075e82-0dd4-0310-85a5-a0d7c8717e4f
Diffstat (limited to '')
-rw-r--r--src/mp3_decode.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/mp3_decode.c b/src/mp3_decode.c
index 4e50559ff..790f9db46 100644
--- a/src/mp3_decode.c
+++ b/src/mp3_decode.c
@@ -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;
}