diff options
author | Max Kellermann <max@duempel.org> | 2009-01-25 13:44:33 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2009-01-25 13:44:33 +0100 |
commit | d628eb3e8bb2b7e9db5ef6f5b907ac2a81afc86a (patch) | |
tree | 12b66d20a329dd7a66347ee21e1108c89613f080 /src/player_control.c | |
parent | ac0e799965afef198e3cba1eb11f018cae680ac3 (diff) | |
download | mpd-d628eb3e8bb2b7e9db5ef6f5b907ac2a81afc86a.tar.gz mpd-d628eb3e8bb2b7e9db5ef6f5b907ac2a81afc86a.tar.xz mpd-d628eb3e8bb2b7e9db5ef6f5b907ac2a81afc86a.zip |
player_control: added player_control.thread
player_control.thread contains the handle of the player thread, or
NULL if the player thread isn't running.
Diffstat (limited to '')
-rw-r--r-- | src/player_control.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/player_control.c b/src/player_control.c index 60b5b8350..94d3aa938 100644 --- a/src/player_control.c +++ b/src/player_control.c @@ -90,7 +90,11 @@ void playerWait(void) void playerKill(void) { + assert(pc.thread != NULL); + player_command(PLAYER_COMMAND_EXIT); + g_thread_join(pc.thread); + pc.thread = NULL; idle_add(IDLE_PLAYER); } |