diff options
author | Max Kellermann <max@duempel.org> | 2009-01-21 16:44:32 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2009-01-21 16:44:32 +0100 |
commit | 1d02318d21bcc7c2dc93b6e509c759a35bc0486e (patch) | |
tree | 605fc35115a94b0a85c2d9e4eb03cb2388f7476b /src | |
parent | a088d9f851dc5696dff409b2f9999c30c0d51bb0 (diff) | |
download | mpd-1d02318d21bcc7c2dc93b6e509c759a35bc0486e.tar.gz mpd-1d02318d21bcc7c2dc93b6e509c759a35bc0486e.tar.xz mpd-1d02318d21bcc7c2dc93b6e509c759a35bc0486e.zip |
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.
Diffstat (limited to 'src')
-rw-r--r-- | src/player_thread.c | 2 |
1 files changed, 1 insertions, 1 deletions
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 { |