From 18076ac9b766485efc45931e62a164e5cc1a8542 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Thu, 10 Jan 2013 09:58:18 +0100 Subject: 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. --- src/PlayerControl.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/PlayerControl.cxx') diff --git a/src/PlayerControl.cxx b/src/PlayerControl.cxx index 73230858..857322c5 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 -- cgit v1.2.3