aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2008-08-26 08:27:18 +0200
committerMax Kellermann <max@duempel.org>2008-08-26 08:27:18 +0200
commitc6035ea33256159fd27a1b2cb34878cfbdca0fca (patch)
tree28966d96bd985e9a59c06ce1ee7a290da5952a9f /src
parent8a4970f863b03550123d1b4595cf69838a93e774 (diff)
downloadmpd-c6035ea33256159fd27a1b2cb34878cfbdca0fca.tar.gz
mpd-c6035ea33256159fd27a1b2cb34878cfbdca0fca.tar.xz
mpd-c6035ea33256159fd27a1b2cb34878cfbdca0fca.zip
don't reset dc->command in quitDecode()
The decoder thread is responsible for resetting dc->command after a command was executed. As a consequence, we can assume that dc->command is already NONE after decoder_stop().
Diffstat (limited to '')
-rw-r--r--src/player_thread.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/player_thread.c b/src/player_thread.c
index 52f0beac0..761e0fba0 100644
--- a/src/player_thread.c
+++ b/src/player_thread.c
@@ -35,7 +35,6 @@ static void quitDecode(void)
{
dc_stop(&pc.notify);
pc.state = PLAYER_STATE_STOP;
- dc.command = DECODE_COMMAND_NONE;
pc.command = PLAYER_COMMAND_NONE;
wakeup_main_task();
}