From: Richard Kettlewell Date: Wed, 11 Mar 2009 09:16:41 +0000 (+0000) Subject: Don't activate pending track until the previous track is actually finished! X-Git-Tag: 5.0.3~4^2~178^2~5 X-Git-Url: https://git.distorted.org.uk/~mdw/disorder/commitdiff_plain/9c55e9e474596295700ab43f8e3d092926ca1452?ds=sidebyside;hp=888b8031dcbb859ffb8afbfee2c66ef97363141a Don't activate pending track until the previous track is actually finished! --- diff --git a/server/speaker.c b/server/speaker.c index 12929b6..8358304 100644 --- a/server/speaker.c +++ b/server/speaker.c @@ -648,7 +648,7 @@ static void mainloop(void) { pthread_mutex_unlock(&lock); } /* Act on the pending SM_PLAY */ - if(pending_playing) { + if(!playing && pending_playing) { pthread_mutex_lock(&lock); playing = pending_playing; pending_playing = 0;