From f34f694ec3f5ea8d6ed4e340bac2302ad056583c Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Tue, 26 Aug 2008 08:45:15 +0200 Subject: [PATCH] moved player_command_finished() to player_thread.c --- src/player_control.c | 8 -------- src/player_control.h | 2 -- src/player_thread.c | 8 ++++++++ 3 files changed, 8 insertions(+), 10 deletions(-) diff --git a/src/player_control.c b/src/player_control.c index 13310a6c5..ae7e4e369 100644 --- a/src/player_control.c +++ b/src/player_control.c @@ -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); diff --git a/src/player_control.h b/src/player_control.h index 633d16dcd..8282a9245 100644 --- a/src/player_control.h +++ b/src/player_control.h @@ -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); diff --git a/src/player_thread.c b/src/player_thread.c index eecc351c6..1b13fd415 100644 --- a/src/player_thread.c +++ b/src/player_thread.c @@ -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);