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.
This commit is contained in:
parent
a088d9f851
commit
1d02318d21
@ -486,7 +486,7 @@ static void do_play(void)
|
||||
|
||||
player.next_song_chunk = -1;
|
||||
if (!player_wait_for_decoder(&player))
|
||||
return;
|
||||
break;
|
||||
} else if (decoder_is_idle()) {
|
||||
break;
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user