diff options
author | Max Kellermann <max@duempel.org> | 2008-10-24 17:50:24 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2008-10-24 17:50:24 +0200 |
commit | ee499cb42f0a4095f1a64aa178c6f413a4a95e22 (patch) | |
tree | 6851508f57a050f0f0556b2ebfc469f4575f5c4c /src/player_thread.c | |
parent | 18c6ebb02362319f0a65f53a353d06b8c57b1ff9 (diff) | |
download | mpd-ee499cb42f0a4095f1a64aa178c6f413a4a95e22.tar.gz mpd-ee499cb42f0a4095f1a64aa178c6f413a4a95e22.tar.xz mpd-ee499cb42f0a4095f1a64aa178c6f413a4a95e22.zip |
player: don't clear command before do_play() returns
This bug caused the audio output devices to stay open, although MPD
wasn't playing: quitDecode() resetted player_control.command, assuming
that the command was STOP. This way, player_task() didn't see the
CLOSE_AUDIO command, and the device was kept open.
Don't clear player_control.command in quitDecode().
Diffstat (limited to 'src/player_thread.c')
-rw-r--r-- | src/player_thread.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/src/player_thread.c b/src/player_thread.c index 21f88cc77..5b4c18324 100644 --- a/src/player_thread.c +++ b/src/player_thread.c @@ -79,7 +79,6 @@ static void quitDecode(void) { dc_stop(&pc.notify); pc.state = PLAYER_STATE_STOP; - pc.command = PLAYER_COMMAND_NONE; wakeup_main_task(); } |