aboutsummaryrefslogtreecommitdiffstats
path: root/src/mp3_decode.c
diff options
context:
space:
mode:
authorWarren Dukes <warren.dukes@gmail.com>2004-05-18 19:32:05 +0000
committerWarren Dukes <warren.dukes@gmail.com>2004-05-18 19:32:05 +0000
commita19a79227c8d7c6bc1ad0606c31657602ca23a85 (patch)
tree9be0bc43581a0c02cea03f69d6d055f612aae370 /src/mp3_decode.c
parenta2b6583db6da3e044f3718f660c7f9a1adf2bb10 (diff)
downloadmpd-a19a79227c8d7c6bc1ad0606c31657602ca23a85.tar.gz
mpd-a19a79227c8d7c6bc1ad0606c31657602ca23a85.tar.xz
mpd-a19a79227c8d7c6bc1ad0606c31657602ca23a85.zip
streaming fixes and such, now it seems to work good, what an annoying bug
to find git-svn-id: https://svn.musicpd.org/mpd/trunk@1066 09075e82-0dd4-0310-85a5-a0d7c8717e4f
Diffstat (limited to 'src/mp3_decode.c')
-rw-r--r--src/mp3_decode.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/mp3_decode.c b/src/mp3_decode.c
index 116083eb5..501042f76 100644
--- a/src/mp3_decode.c
+++ b/src/mp3_decode.c
@@ -213,7 +213,9 @@ int decodeNextFrameHeader(mp3DecodeData * data) {
}
}
#endif
- if(MAD_RECOVERABLE((data->stream).error)) return DECODE_SKIP;
+ if(MAD_RECOVERABLE((data->stream).error)) {
+ return DECODE_SKIP;
+ }
else {
if((data->stream).error==MAD_ERROR_BUFLEN) return DECODE_CONT;
else
@@ -249,7 +251,9 @@ int decodeNextFrame(mp3DecodeData * data) {
}
}
#endif
- if(MAD_RECOVERABLE((data->stream).error)) return DECODE_SKIP;
+ if(MAD_RECOVERABLE((data->stream).error)) {
+ return DECODE_SKIP;
+ }
else {
if((data->stream).error==MAD_ERROR_BUFLEN) return DECODE_CONT;
else