aboutsummaryrefslogtreecommitdiffstats
path: root/src/player.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/player.c11
1 files changed, 3 insertions, 8 deletions
diff --git a/src/player.c b/src/player.c
index 6a2c3a08e..4de92fb8e 100644
--- a/src/player.c
+++ b/src/player.c
@@ -53,20 +53,15 @@ void player_command_finished()
void playerPlay(Song * song)
{
- playerStop();
-
- set_current_song(song);
- player_command(PLAYER_COMMAND_PLAY);
-}
-
-void playerStop(void)
-{
assert(pc.queueLockState == PLAYER_QUEUE_UNLOCKED);
if (pc.state != PLAYER_STATE_STOP)
player_command(PLAYER_COMMAND_STOP);
pc.queueState = PLAYER_QUEUE_BLANK;
+
+ set_current_song(song);
+ player_command(PLAYER_COMMAND_PLAY);
}
void playerWait(void)