From 1d02318d21bcc7c2dc93b6e509c759a35bc0486e Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Wed, 21 Jan 2009 16:44:32 +0100 Subject: 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. --- src/player_thread.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/player_thread.c') diff --git a/src/player_thread.c b/src/player_thread.c index 61095cc53..c5060fcb4 100644 --- a/src/player_thread.c +++ b/src/player_thread.c @@ -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 { -- cgit v1.2.3