clean up sleep times to be all 10ms
git-svn-id: https://svn.musicpd.org/mpd/trunk@1102 09075e82-0dd4-0310-85a5-a0d7c8717e4f
This commit is contained in:
parent
05cbc476f5
commit
b3f46fd0cc
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user