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.
This commit is contained in:
@@ -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)
|
||||
|
Reference in New Issue
Block a user