aboutsummaryrefslogtreecommitdiffstats
path: root/src/player_thread.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/player_thread.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/player_thread.c b/src/player_thread.c
index 412ae9b5e..7368b4d4b 100644
--- a/src/player_thread.c
+++ b/src/player_thread.c
@@ -750,13 +750,11 @@ static void do_play(void)
}
}
- if (player.queued) {
- assert(pc.next_song != NULL);
- pc.next_song = NULL;
- }
-
player_dc_stop(&player);
+ assert(!player.queued || pc.next_song != NULL);
+ pc.next_song = NULL;
+
music_pipe_clear(player.pipe, player_buffer);
music_pipe_free(player.pipe);