aboutsummaryrefslogtreecommitdiffstats
path: root/src/PlayerControl.cxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2013-01-10 09:58:18 +0100
committerMax Kellermann <max@duempel.org>2013-01-10 10:01:24 +0100
commit18076ac9b766485efc45931e62a164e5cc1a8542 (patch)
tree111b228b929dff89978807e638afcba3897210b2 /src/PlayerControl.cxx
parentad15ca7104ca299c87b6ac86441573a00c589fef (diff)
downloadmpd-18076ac9b766485efc45931e62a164e5cc1a8542.tar.gz
mpd-18076ac9b766485efc45931e62a164e5cc1a8542.tar.xz
mpd-18076ac9b766485efc45931e62a164e5cc1a8542.zip
PlayerThread: use pc.cond instead of main_cond
The main_cond variable was completely unnecessary. The pc.cond object can be used for both main->pc and pc->main.
Diffstat (limited to '')
-rw-r--r--src/PlayerControl.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/PlayerControl.cxx b/src/PlayerControl.cxx
index 73230858f..857322c50 100644
--- a/src/PlayerControl.cxx
+++ b/src/PlayerControl.cxx
@@ -76,7 +76,7 @@ static void
player_command_wait_locked(struct player_control *pc)
{
while (pc->command != PLAYER_COMMAND_NONE)
- g_cond_wait(main_cond, pc->mutex);
+ g_cond_wait(pc->cond, pc->mutex);
}
static void