From ee499cb42f0a4095f1a64aa178c6f413a4a95e22 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Fri, 24 Oct 2008 17:50:24 +0200 Subject: 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(). --- src/player_thread.c | 1 - 1 file changed, 1 deletion(-) 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(); } -- cgit v1.2.3