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:
@@ -147,7 +147,7 @@ player_command_finished_locked(struct player_control *pc)
|
||||
assert(pc->command != PLAYER_COMMAND_NONE);
|
||||
|
||||
pc->command = PLAYER_COMMAND_NONE;
|
||||
g_cond_signal(main_cond);
|
||||
g_cond_signal(pc->cond);
|
||||
}
|
||||
|
||||
static void
|
||||
|
Reference in New Issue
Block a user