aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to '')
-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 b1b072e23..7ff63b536 100644
--- a/src/mp3_decode.c
+++ b/src/mp3_decode.c
@@ -527,11 +527,11 @@ int mp3Read(mp3DecodeData * data, OutputBuffer * cb, DecoderControl * dc) {
while((ret = decodeNextFrameHeader(data))==DECODE_CONT &&
!dc->seek && !dc->stop);
if(ret==DECODE_SKIP) skip = 1;
- else if(ret==DECODE_BREAK) break;
+ else if(ret==DECODE_BREAK || dc->stop || dc->seek) break;
if(!data->muteFrame) {
while((ret = decodeNextFrame(data))==DECODE_CONT &&
!dc->seek && !dc->stop);
- if(ret==DECODE_BREAK) break;
+ if(ret==DECODE_BREAK || dc->seek || dc->stop) break;
}
if(!skip && ret==DECODE_OK) break;
}