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().
This commit is contained in:
Max Kellermann 2008-10-24 17:50:24 +02:00
parent 18c6ebb023
commit ee499cb42f
1 changed files with 0 additions and 1 deletions

View File

@ -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();
}