aboutsummaryrefslogtreecommitdiffstats
path: root/src/decode.c
diff options
context:
space:
mode:
authorWarren Dukes <warren.dukes@gmail.com>2004-06-19 16:27:48 +0000
committerWarren Dukes <warren.dukes@gmail.com>2004-06-19 16:27:48 +0000
commit0228a4a5ca77f49a554b4a2f689ee76ff28dca6d (patch)
tree721cefda9d2b18acac18c6ea191d213b145650e8 /src/decode.c
parente1a94f917df4da9073cf52d8dcdb26bc12b76930 (diff)
downloadmpd-0228a4a5ca77f49a554b4a2f689ee76ff28dca6d.tar.gz
mpd-0228a4a5ca77f49a554b4a2f689ee76ff28dca6d.tar.xz
mpd-0228a4a5ca77f49a554b4a2f689ee76ff28dca6d.zip
uber minor tweaks
git-svn-id: https://svn.musicpd.org/mpd/trunk@1563 09075e82-0dd4-0310-85a5-a0d7c8717e4f
Diffstat (limited to 'src/decode.c')
-rw-r--r--src/decode.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/decode.c b/src/decode.c
index eeaf74ba4..b7ded74da 100644
--- a/src/decode.c
+++ b/src/decode.c
@@ -462,6 +462,7 @@ void decodeParent(PlayerControl * pc, DecoderControl * dc, OutputBuffer * cb) {
dc->state!=DECODE_STATE_STOP)
{
processDecodeInput();
+ handleDecodeStart();
if(quit) return;
my_usleep(10000);
}
@@ -561,10 +562,10 @@ void decodeParent(PlayerControl * pc, DecoderControl * dc, OutputBuffer * cb) {
quit = 1;
}
pc->totalPlayTime+= sizeToTime*cb->chunkSize[cb->begin];
- cb->begin++;
- if(cb->begin>=buffered_chunks) {
+ if( cb->begin+1 >= buffered_chunks ) {
cb->begin = 0;
}
+ else cb->begin++;
}
else if(next==cb->begin) {
if(doCrossFade==1 && nextChunk>=0) {