diff options
author | Max Kellermann <max@duempel.org> | 2008-10-27 10:10:40 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2008-10-27 10:10:40 +0100 |
commit | 4a71f66256d02c46bc2bb3665cc6451a2101d5ac (patch) | |
tree | 4eeb79b8e8a084a22e681a269387814a8698c033 /src/player_thread.c | |
parent | 0d30d51f07f1c55caf974c671fa702307c163878 (diff) | |
download | mpd-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 'src/player_thread.c')
-rw-r--r-- | src/player_thread.c | 1 |
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; } |