aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorWarren Dukes <warren.dukes@gmail.com>2004-03-05 13:25:39 +0000
committerWarren Dukes <warren.dukes@gmail.com>2004-03-05 13:25:39 +0000
commita8d3895e324c388442c290b071f754406461c4a2 (patch)
tree1909966c69f6a8b839470f38b679292e7ab5327d /src
parent1cf07bfa40183177b4171cb677f6edff6515b35f (diff)
downloadmpd-a8d3895e324c388442c290b071f754406461c4a2.tar.gz
mpd-a8d3895e324c388442c290b071f754406461c4a2.tar.xz
mpd-a8d3895e324c388442c290b071f754406461c4a2.zip
fix a booboo
git-svn-id: https://svn.musicpd.org/mpd/trunk@204 09075e82-0dd4-0310-85a5-a0d7c8717e4f
Diffstat (limited to 'src')
-rw-r--r--src/mp3_decode.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mp3_decode.c b/src/mp3_decode.c
index b041da3b9..a19f85e51 100644
--- a/src/mp3_decode.c
+++ b/src/mp3_decode.c
@@ -506,10 +506,10 @@ int mp3Read(mp3DecodeData * data, Buffer * cb, DecoderControl * dc) {
skip = 0;
while((ret = decodeNextFrameHeader(data))==DECODE_CONT);
if(ret==DECODE_SKIP) skip = 1;
- else if(ret==DECODE_BREAK) return -1;
+ else if(ret==DECODE_BREAK) break;
if(data->muteFrame) {
while((ret = decodeNextFrame(data))==DECODE_CONT);
- if(ret==DECODE_BREAK) return -1;
+ if(ret==DECODE_BREAK) break;
}
if(!skip && ret==DECODE_OK) break;
}