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:
Max Kellermann 2009-01-21 16:44:32 +01:00
parent a088d9f851
commit 1d02318d21

View File

@ -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 {