moved player_command_finished() to player_thread.c

This commit is contained in:
Max Kellermann 2008-08-26 08:45:15 +02:00
parent e2c8b960de
commit f34f694ec3
3 changed files with 8 additions and 10 deletions

View File

@ -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);

View File

@ -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);

View File

@ -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);