diff options
author | Max Kellermann <max@duempel.org> | 2009-01-02 11:20:41 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2009-01-02 11:20:41 +0100 |
commit | 272ee5f7d2be764d5edef2db763f50438689b48c (patch) | |
tree | 871f80692a7f9f1d2f02173fc49d1183819eae55 /src/player_thread.c | |
parent | daf7c3db5aac09a8376f1c8ed499eb17202f77a9 (diff) | |
download | mpd-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_thread.c')
-rw-r--r-- | src/player_thread.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/player_thread.c b/src/player_thread.c index 5b2130669..5ca5b5b02 100644 --- a/src/player_thread.c +++ b/src/player_thread.c @@ -27,6 +27,7 @@ #include "song.h" #include "pipe.h" #include "idle.h" +#include "main.h" #include <glib.h> @@ -83,7 +84,7 @@ static void player_command_finished(void) assert(pc.command != PLAYER_COMMAND_NONE); pc.command = PLAYER_COMMAND_NONE; - event_pipe_signal(); + notify_signal(&main_notify); } static void player_stop_decoder(void) |