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:
parent
18c6ebb023
commit
ee499cb42f
|
@ -79,7 +79,6 @@ static void quitDecode(void)
|
||||||
{
|
{
|
||||||
dc_stop(&pc.notify);
|
dc_stop(&pc.notify);
|
||||||
pc.state = PLAYER_STATE_STOP;
|
pc.state = PLAYER_STATE_STOP;
|
||||||
pc.command = PLAYER_COMMAND_NONE;
|
|
||||||
wakeup_main_task();
|
wakeup_main_task();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue