From 272ee5f7d2be764d5edef2db763f50438689b48c Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Fri, 2 Jan 2009 11:20:41 +0100 Subject: 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. --- src/player_control.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/player_control.c') 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 #include @@ -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); } } -- cgit v1.2.3