diff options
Diffstat (limited to '')
-rw-r--r-- | src/player.c | 22 |
1 files changed, 8 insertions, 14 deletions
diff --git a/src/player.c b/src/player.c index fae405ae3..5c3319491 100644 --- a/src/player.c +++ b/src/player.c @@ -25,14 +25,6 @@ #include "os_compat.h" #include "main_notify.h" -static void playerCloseAudio(void); - -void playerWait(void) -{ - playerStop(); - playerCloseAudio(); -} - static void set_current_song(Song *song) { assert(song != NULL); @@ -76,6 +68,14 @@ void playerStop(void) playerQueueUnlock(); } +void playerWait(void) +{ + player_command(PLAYER_COMMAND_CLOSE_AUDIO); + + pc.queueState = PLAYER_QUEUE_BLANK; + playerQueueUnlock(); +} + void playerKill(void) /* deprecated */ { playerPause(); @@ -165,12 +165,6 @@ char *getPlayerErrorStr(void) return *error ? error : NULL; } -static void playerCloseAudio(void) -{ - playerStop(); - player_command(PLAYER_COMMAND_CLOSE_AUDIO); -} - int queueSong(Song * song) { if (pc.queueState == PLAYER_QUEUE_BLANK) { |