aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2008-10-27 10:10:40 +0100
committerMax Kellermann <max@duempel.org>2008-10-27 10:10:40 +0100
commit4a71f66256d02c46bc2bb3665cc6451a2101d5ac (patch)
tree4eeb79b8e8a084a22e681a269387814a8698c033
parent0d30d51f07f1c55caf974c671fa702307c163878 (diff)
downloadmpd-4a71f66256d02c46bc2bb3665cc6451a2101d5ac.tar.gz
mpd-4a71f66256d02c46bc2bb3665cc6451a2101d5ac.tar.xz
mpd-4a71f66256d02c46bc2bb3665cc6451a2101d5ac.zip
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.
Diffstat (limited to '')
-rw-r--r--src/player_thread.c1
1 files changed, 1 insertions, 0 deletions
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;
}