diff options
author | Warren Dukes <warren.dukes@gmail.com> | 2004-03-19 04:40:50 +0000 |
---|---|---|
committer | Warren Dukes <warren.dukes@gmail.com> | 2004-03-19 04:40:50 +0000 |
commit | e40c676dba90b097596f1fb845eff432e59594ca (patch) | |
tree | 700c81a67a7fc7247289a5b62969737de5f9235e /src | |
parent | cbfcd23d83f34c13add74e4f593c170a3afc62f1 (diff) | |
download | mpd-e40c676dba90b097596f1fb845eff432e59594ca.tar.gz mpd-e40c676dba90b097596f1fb845eff432e59594ca.tar.xz mpd-e40c676dba90b097596f1fb845eff432e59594ca.zip |
fix booboo
git-svn-id: https://svn.musicpd.org/mpd/trunk@289 09075e82-0dd4-0310-85a5-a0d7c8717e4f
Diffstat (limited to '')
-rw-r--r-- | src/mp4_decode.c | 5 |
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, |