From b3f46fd0cc27a96a7247936b6de8c1b37c24aaee Mon Sep 17 00:00:00 2001 From: Warren Dukes Date: Thu, 20 May 2004 00:21:58 +0000 Subject: clean up sleep times to be all 10ms git-svn-id: https://svn.musicpd.org/mpd/trunk@1102 09075e82-0dd4-0310-85a5-a0d7c8717e4f --- src/decode.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/decode.c b/src/decode.c index a4efafca5..af5e39259 100644 --- a/src/decode.c +++ b/src/decode.c @@ -82,7 +82,7 @@ void stopDecode(DecoderControl * dc) { (dc->start || dc->state!=DECODE_STATE_STOP)) { dc->stop = 1; - while(decode_pid && *decode_pid>0 && dc->stop) my_usleep(1000); + while(decode_pid && *decode_pid>0 && dc->stop) my_usleep(10000); } } @@ -135,7 +135,7 @@ int calculateCrossFadeChunks(PlayerControl * pc, AudioFormat * af) { int waitOnDecode(PlayerControl * pc, DecoderControl * dc, OutputBuffer * cb, int * decodeWaitedOn) { - while(decode_pid && *decode_pid>0 && dc->start) my_usleep(1000); + while(decode_pid && *decode_pid>0 && dc->start) my_usleep(10000); if(dc->start || dc->error!=DECODE_ERROR_NOERROR) { strncpy(pc->erroredFile,pc->file,MAXPATHLEN); @@ -526,7 +526,7 @@ void decodeParent(PlayerControl * pc, DecoderControl * dc, OutputBuffer * cb) { quitDecode(pc,dc); return; } - my_usleep(1000); + my_usleep(10000); } if(pc->queueState!=PLAYER_QUEUE_PLAY) { quit = 1; -- cgit v1.2.3