moved player_command_finished() to player_thread.c
This commit is contained in:
parent
e2c8b960de
commit
f34f694ec3
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user