aboutsummaryrefslogtreecommitdiffstats
path: root/src/player.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/player.c
parent2320970c6ff4e0af89fcf508d321100989aae989 (diff)
downloadmpd-be753fb53d95859204a478c4359c9653eb33511e.tar.gz
mpd-be753fb53d95859204a478c4359c9653eb33511e.tar.xz
mpd-be753fb53d95859204a478c4359c9653eb33511e.zip
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/player.c')
-rw-r--r--src/player.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/player.c b/src/player.c
index 084edd1b5..fc906d1eb 100644
--- a/src/player.c
+++ b/src/player.c
@@ -194,7 +194,7 @@ int playerPlay(FILE * fp, char * utf8file) {
return -1;
}
- while(player_pid>0 && pc->play) usleep(10);
+ while(player_pid>0 && pc->play) usleep(1000);
return 0;
}
@@ -204,7 +204,7 @@ int playerStop(FILE * fp) {
if(player_pid>0 && pc->state!=PLAYER_STATE_STOP) {
pc->stop = 1;
- while(player_pid>0 && pc->stop) usleep(10);
+ while(player_pid>0 && pc->stop) usleep(1000);
}
pc->queueState = PLAYER_QUEUE_BLANK;
@@ -230,7 +230,7 @@ int playerPause(FILE * fp) {
if(player_pid>0 && pc->state!=PLAYER_STATE_STOP) {
pc->pause = 1;
- while(player_pid>0 && pc->pause) usleep(10);
+ while(player_pid>0 && pc->pause) usleep(1000);
}
return 0;
@@ -361,7 +361,7 @@ void playerQueueLock() {
if(player_pid>0 && pc->queueLockState==PLAYER_QUEUE_UNLOCKED)
{
pc->lockQueue = 1;
- while(player_pid>0 && pc->lockQueue) usleep(10);
+ while(player_pid>0 && pc->lockQueue) usleep(1000);
}
}
@@ -371,7 +371,7 @@ void playerQueueUnlock() {
if(player_pid>0 && pc->queueLockState==PLAYER_QUEUE_LOCKED)
{
pc->unlockQueue = 1;
- while(player_pid>0 && pc->unlockQueue) usleep(10);
+ while(player_pid>0 && pc->unlockQueue) usleep(1000);
}
}
@@ -394,7 +394,7 @@ int playerSeek(FILE * fp, char * utf8file, float time) {
if(pc->error==PLAYER_ERROR_NOERROR) {
pc->seekWhere = time;
pc->seek = 1;
- while(player_pid>0 && pc->seek) usleep(10);
+ while(player_pid>0 && pc->seek) usleep(1000);
}
return 0;