aboutsummaryrefslogtreecommitdiffstats
path: root/src/player.c
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2008-08-26 08:27:16 +0200
committerMax Kellermann <max@duempel.org>2008-08-26 08:27:16 +0200
commitae0033028595b96352c1c769eaeeeaa0c12bccb9 (patch)
tree1f7565ae1b10d8e199724c4e57a3d0717fc1f657 /src/player.c
parent92d9797b8cb5b51cdb1cb7f40b12a87ad91eac2e (diff)
downloadmpd-ae0033028595b96352c1c769eaeeeaa0c12bccb9.tar.gz
mpd-ae0033028595b96352c1c769eaeeeaa0c12bccb9.tar.xz
mpd-ae0033028595b96352c1c769eaeeeaa0c12bccb9.zip
rewrote playerKill()
playerKill() was marked as deprecated, but it seems like a good idea to do proper cleanup in all threads (e.g. for usable valgrind results). Introduce the command "EXIT" which makes the player thread exit cleanly.
Diffstat (limited to 'src/player.c')
-rw-r--r--src/player.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/player.c b/src/player.c
index 5c3319491..59b8c9237 100644
--- a/src/player.c
+++ b/src/player.c
@@ -76,9 +76,9 @@ void playerWait(void)
playerQueueUnlock();
}
-void playerKill(void) /* deprecated */
+void playerKill(void)
{
- playerPause();
+ player_command(PLAYER_COMMAND_EXIT);
}
void playerPause(void)