diff options
author | Warren Dukes <warren.dukes@gmail.com> | 2004-03-06 23:25:32 +0000 |
---|---|---|
committer | Warren Dukes <warren.dukes@gmail.com> | 2004-03-06 23:25:32 +0000 |
commit | 6eb6985ac1089b354e019f5cf8e16414855efaac (patch) | |
tree | fb4c84b76aae7fe3e14b461ce841a3eb82fdf931 /src/decode.c | |
parent | e74eb1cf699fca5079e3a7f6c4a428c8372e83f6 (diff) | |
download | mpd-6eb6985ac1089b354e019f5cf8e16414855efaac.tar.gz mpd-6eb6985ac1089b354e019f5cf8e16414855efaac.tar.xz mpd-6eb6985ac1089b354e019f5cf8e16414855efaac.zip |
make some usleeps longer, just to try to stave off busy waiting
git-svn-id: https://svn.musicpd.org/mpd/trunk@219 09075e82-0dd4-0310-85a5-a0d7c8717e4f
Diffstat (limited to '')
-rw-r--r-- | src/decode.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/decode.c b/src/decode.c index ce2629f5f..6b0a2c71e 100644 --- a/src/decode.c +++ b/src/decode.c @@ -242,7 +242,7 @@ int decoderInit(PlayerControl * pc, Buffer * cb, AudioFormat *af, dc->stop = 0; } else if(dc->seek) dc->start = 1; - else usleep(1000); + else usleep(10000); } exit(0); @@ -311,7 +311,7 @@ void decode() { { processDecodeInput(); if(quit) return; - usleep(100); + usleep(1000); } while(!quit) { @@ -458,7 +458,7 @@ void decode() { quit = 1; break; } - else usleep(10); + else usleep(1000); } pc->totalPlayTime+= pc->elapsedTime-pc->beginTime; \ |