From 4a71f66256d02c46bc2bb3665cc6451a2101d5ac Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Mon, 27 Oct 2008 10:10:40 +0100 Subject: [PATCH] player: reset pc.command when decoder startup fails When the decoder failed to start, the function do_play() returned, still having pc.command==PLAY. This is because pc.command was reset only when the decoder started up successfully. Add another player_command_finished() call in the error handler. --- src/player_thread.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/player_thread.c b/src/player_thread.c index 5b4c18324..af016df60 100644 --- a/src/player_thread.c +++ b/src/player_thread.c @@ -246,6 +246,7 @@ static void do_play(void) dc_start(&pc.notify, pc.next_song); if (waitOnDecode(&player) < 0) { quitDecode(); + player_command_finished(); return; }