From 9c55e9e474596295700ab43f8e3d092926ca1452 Mon Sep 17 00:00:00 2001 From: Richard Kettlewell Date: Wed, 11 Mar 2009 09:16:41 +0000 Subject: [PATCH] Don't activate pending track until the previous track is actually finished! --- server/speaker.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.11.0