aboutsummaryrefslogtreecommitdiffstats
path: root/src/decode.c
diff options
context:
space:
mode:
authorWarren Dukes <warren.dukes@gmail.com>2004-05-20 00:21:58 +0000
committerWarren Dukes <warren.dukes@gmail.com>2004-05-20 00:21:58 +0000
commitb3f46fd0cc27a96a7247936b6de8c1b37c24aaee (patch)
tree99034ca3fe5dbfa1195ea4067e150f3b1cc186db /src/decode.c
parent05cbc476f5bec2f8e6e13e5c1aeb199b3a614a07 (diff)
downloadmpd-b3f46fd0cc27a96a7247936b6de8c1b37c24aaee.tar.gz
mpd-b3f46fd0cc27a96a7247936b6de8c1b37c24aaee.tar.xz
mpd-b3f46fd0cc27a96a7247936b6de8c1b37c24aaee.zip
clean up sleep times to be all 10ms
git-svn-id: https://svn.musicpd.org/mpd/trunk@1102 09075e82-0dd4-0310-85a5-a0d7c8717e4f
Diffstat (limited to 'src/decode.c')
-rw-r--r--src/decode.c6
1 files 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;