aboutsummaryrefslogtreecommitdiff
path: root/src/decode.c
diff options
context:
space:
mode:
authorWarren Dukes <warren.dukes@gmail.com>2004-03-18 18:35:23 +0000
committerWarren Dukes <warren.dukes@gmail.com>2004-03-18 18:35:23 +0000
commitbe753fb53d95859204a478c4359c9653eb33511e (patch)
tree7b9bbe86a8c21591ff4fa531b29d3735b17779c2 /src/decode.c
parent2320970c6ff4e0af89fcf508d321100989aae989 (diff)
make all sleeps at least 1 ms
git-svn-id: https://svn.musicpd.org/mpd/trunk@279 09075e82-0dd4-0310-85a5-a0d7c8717e4f
Diffstat (limited to 'src/decode.c')
-rw-r--r--src/decode.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/decode.c b/src/decode.c
index 8cc1bf07..4a9ed21a 100644
--- a/src/decode.c
+++ b/src/decode.c
@@ -78,7 +78,7 @@ void stopDecode(DecoderControl * dc) {
(dc->start || dc->state==DECODE_STATE_DECODE))
{
dc->stop = 1;
- while(decode_pid && *decode_pid>0 && dc->stop) usleep(10);
+ while(decode_pid && *decode_pid>0 && dc->stop) usleep(1000);
}
}
@@ -111,7 +111,7 @@ int calculateCrossFadeChunks(PlayerControl * pc, AudioFormat * af) {
int waitOnDecode(PlayerControl * pc, AudioFormat * af, DecoderControl * dc,
Buffer * cb)
{
- while(decode_pid && *decode_pid>0 && dc->start) usleep(10);
+ while(decode_pid && *decode_pid>0 && dc->start) usleep(1000);
if(dc->start || dc->error!=DECODE_ERROR_NOERROR) {
strncpy(pc->erroredFile,pc->file,MAXPATHLEN);
@@ -162,7 +162,7 @@ void decodeSeek(PlayerControl * pc, AudioFormat * af, DecoderControl * dc,
dc->seek = 1;
pc->elapsedTime = dc->seekWhere;
pc->bitRate = 0;
- while(*decode_pid>0 && dc->seek) usleep(10);
+ while(*decode_pid>0 && dc->seek) usleep(1000);
}
}
pc->seek = 0;
@@ -443,7 +443,7 @@ void decode() {
quitDecode(pc,dc);
return;
}
- usleep(10);
+ usleep(1000);
}
if(pc->queueState!=PLAYER_QUEUE_PLAY) {
quit = 1;