Commit f34f694e authored by Max Kellermann's avatar Max Kellermann

moved player_command_finished() to player_thread.c

parent e2c8b960
......@@ -56,14 +56,6 @@ static void player_command(enum player_command cmd)
}
}
void player_command_finished()
{
assert(pc.command != PLAYER_COMMAND_NONE);
pc.command = PLAYER_COMMAND_NONE;
wakeup_main_task();
}
void playerPlay(Song * song)
{
assert(pc.queueLockState == PLAYER_QUEUE_UNLOCKED);
......
......@@ -107,8 +107,6 @@ extern struct player_control pc;
void pc_init(unsigned int buffered_before_play);
void player_command_finished(void);
void playerPlay(Song * song);
void playerSetPause(int pause_flag);
......
......@@ -32,6 +32,14 @@ enum xfade_state {
XFADE_ENABLED = 1
};
static void player_command_finished(void)
{
assert(pc.command != PLAYER_COMMAND_NONE);
pc.command = PLAYER_COMMAND_NONE;
wakeup_main_task();
}
static void quitDecode(void)
{
dc_stop(&pc.notify);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment