chiark
/
gitweb
/
~mdw
/
disorder
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
888b803
)
Don't activate pending track until the previous track is actually finished!
author
Richard Kettlewell
<rjk@greenend.org.uk>
Wed, 11 Mar 2009 09:16:41 +0000
(09:16 +0000)
committer
Richard Kettlewell
<rjk@greenend.org.uk>
Wed, 11 Mar 2009 09:16:41 +0000
(09:16 +0000)
server/speaker.c
patch
|
blob
|
blame
|
history
diff --git
a/server/speaker.c
b/server/speaker.c
index 12929b61cfda84accd7f83edf78338f7e1306e49..835830441545e0f50738d75248759c3884e29b20 100644
(file)
--- 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 */
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;
pthread_mutex_lock(&lock);
playing = pending_playing;
pending_playing = 0;