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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user