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.
This commit is contained in:
Max Kellermann
2013-01-10 09:58:18 +01:00
parent ad15ca7104
commit 18076ac9b7
4 changed files with 2 additions and 8 deletions
+1 -1
View File
@@ -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