Commit e40c676d authored by Warren Dukes's avatar Warren Dukes

fix booboo

git-svn-id: https://svn.musicpd.org/mpd/trunk@289 09075e82-0dd4-0310-85a5-a0d7c8717e4f
parent cbfcd23d
...@@ -235,7 +235,10 @@ int mp4_decode(Buffer * cb, AudioFormat * af, DecoderControl * dc) { ...@@ -235,7 +235,10 @@ int mp4_decode(Buffer * cb, AudioFormat * af, DecoderControl * dc) {
{ {
usleep(10000); usleep(10000);
} }
if(dc->stop) eof = 1; if(dc->stop) {
eof = 1;
break;
}
else if(!dc->seek) { else if(!dc->seek) {
sampleBufferLen-=size; sampleBufferLen-=size;
memcpy(cb->chunks+cb->end*CHUNK_SIZE+chunkLen, memcpy(cb->chunks+cb->end*CHUNK_SIZE+chunkLen,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment