aboutsummaryrefslogtreecommitdiffstats
path: root/src/player_thread.c
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2008-08-26 08:45:15 +0200
committerMax Kellermann <max@duempel.org>2008-08-26 08:45:15 +0200
commitf34f694ec3f5ea8d6ed4e340bac2302ad056583c (patch)
treeffc43f3d214e2bf2266eb422c3ceca8c9f9d8775 /src/player_thread.c
parente2c8b960de29e4fc45f16d980b9ef370de9951d3 (diff)
downloadmpd-f34f694ec3f5ea8d6ed4e340bac2302ad056583c.tar.gz
mpd-f34f694ec3f5ea8d6ed4e340bac2302ad056583c.tar.xz
mpd-f34f694ec3f5ea8d6ed4e340bac2302ad056583c.zip
moved player_command_finished() to player_thread.c
Diffstat (limited to '')
-rw-r--r--src/player_thread.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/player_thread.c b/src/player_thread.c
index eecc351c6..1b13fd415 100644
--- a/src/player_thread.c
+++ b/src/player_thread.c
@@ -32,6 +32,14 @@ enum xfade_state {
XFADE_ENABLED = 1
};
+static void player_command_finished(void)
+{
+ assert(pc.command != PLAYER_COMMAND_NONE);
+
+ pc.command = PLAYER_COMMAND_NONE;
+ wakeup_main_task();
+}
+
static void quitDecode(void)
{
dc_stop(&pc.notify);