aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/mp4_decode.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/mp4_decode.c b/src/mp4_decode.c
index efe3d0527..71df9daa7 100644
--- a/src/mp4_decode.c
+++ b/src/mp4_decode.c
@@ -235,7 +235,10 @@ int mp4_decode(Buffer * cb, AudioFormat * af, DecoderControl * dc) {
{
usleep(10000);
}
- if(dc->stop) eof = 1;
+ if(dc->stop) {
+ eof = 1;
+ break;
+ }
else if(!dc->seek) {
sampleBufferLen-=size;
memcpy(cb->chunks+cb->end*CHUNK_SIZE+chunkLen,