aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/player_thread.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/player_thread.c b/src/player_thread.c
index bc10793a6..fc4623c3f 100644
--- a/src/player_thread.c
+++ b/src/player_thread.c
@@ -226,6 +226,8 @@ static bool player_seek_decoder(struct player *player)
double where;
bool ret;
+ assert(pc.next_song != NULL);
+
if (decoder_current_song() != pc.next_song) {
player_dc_stop(player);
@@ -234,8 +236,10 @@ static bool player_seek_decoder(struct player *player)
dc_start_async(pc.next_song);
ret = player_wait_for_decoder(player);
- if (!ret)
+ if (!ret) {
+ player_command_finished();
return false;
+ }
} else {
pc.next_song = NULL;
player->queued = false;