Commit 1d02318d authored by Max Kellermann's avatar Max Kellermann

player_thread: emit PLAYLIST event when new song fails

Break from the loop instead of returning the function. This calls player_stop_decoder(), which in turn emits the PLAYLIST event. This allows the playlist to re-start the player.
parent a088d9f8
...@@ -486,7 +486,7 @@ static void do_play(void) ...@@ -486,7 +486,7 @@ static void do_play(void)
player.next_song_chunk = -1; player.next_song_chunk = -1;
if (!player_wait_for_decoder(&player)) if (!player_wait_for_decoder(&player))
return; break;
} else if (decoder_is_idle()) { } else if (decoder_is_idle()) {
break; break;
} else { } else {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment