From 9c55e9e474596295700ab43f8e3d092926ca1452 Mon Sep 17 00:00:00 2001 Message-Id: <9c55e9e474596295700ab43f8e3d092926ca1452.1715630396.git.mdw@distorted.org.uk> From: Mark Wooding Date: Wed, 11 Mar 2009 09:16:41 +0000 Subject: [PATCH] Don't activate pending track until the previous track is actually finished! Organization: Straylight/Edgeware From: Richard Kettlewell --- 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; -- [mdw]