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->start || dc->state!=DECODE_STATE_STOP))
|
||||||
{
|
{
|
||||||
dc->stop = 1;
|
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 waitOnDecode(PlayerControl * pc, DecoderControl * dc, OutputBuffer * cb,
|
||||||
int * decodeWaitedOn)
|
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) {
|
if(dc->start || dc->error!=DECODE_ERROR_NOERROR) {
|
||||||
strncpy(pc->erroredFile,pc->file,MAXPATHLEN);
|
strncpy(pc->erroredFile,pc->file,MAXPATHLEN);
|
||||||
@ -526,7 +526,7 @@ void decodeParent(PlayerControl * pc, DecoderControl * dc, OutputBuffer * cb) {
|
|||||||
quitDecode(pc,dc);
|
quitDecode(pc,dc);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
my_usleep(1000);
|
my_usleep(10000);
|
||||||
}
|
}
|
||||||
if(pc->queueState!=PLAYER_QUEUE_PLAY) {
|
if(pc->queueState!=PLAYER_QUEUE_PLAY) {
|
||||||
quit = 1;
|
quit = 1;
|
||||||
|
Loading…
Reference in New Issue
Block a user