aboutsummaryrefslogtreecommitdiffstats
path: root/src/player_control.c
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2009-01-02 11:20:41 +0100
committerMax Kellermann <max@duempel.org>2009-01-02 11:20:41 +0100
commit272ee5f7d2be764d5edef2db763f50438689b48c (patch)
tree871f80692a7f9f1d2f02173fc49d1183819eae55 /src/player_control.c
parentdaf7c3db5aac09a8376f1c8ed499eb17202f77a9 (diff)
downloadmpd-272ee5f7d2be764d5edef2db763f50438689b48c.tar.gz
mpd-272ee5f7d2be764d5edef2db763f50438689b48c.tar.xz
mpd-272ee5f7d2be764d5edef2db763f50438689b48c.zip
event_pipe: replaced PIPE_EVENT_SIGNAL with main_notify
There is only one location using PIPE_EVENT_SIGNAL: to synchronize player_command() with player_command_finished(). Use the "notify" library instead of the event_pipe here.
Diffstat (limited to 'src/player_control.c')
-rw-r--r--src/player_control.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/player_control.c b/src/player_control.c
index 63ed75f7b..bb687f8ad 100644
--- a/src/player_control.c
+++ b/src/player_control.c
@@ -23,7 +23,7 @@
#include "song.h"
#include "idle.h"
#include "pcm_utils.h"
-#include "event_pipe.h"
+#include "main.h"
#include <assert.h>
#include <stdio.h>
@@ -58,7 +58,7 @@ static void player_command(enum player_command cmd)
pc.command = cmd;
while (pc.command != PLAYER_COMMAND_NONE) {
notify_signal(&pc.notify);
- event_pipe_wait();
+ notify_wait(&main_notify);
}
}