DecoderControl: take ownership of client_cond

Don't let the "client" pass its own GCond.  This was not used
consistently.
This commit is contained in:
Max Kellermann
2013-01-10 09:39:23 +01:00
parent 53117ac204
commit ad15ca7104
4 changed files with 8 additions and 7 deletions
+3 -3
View File
@@ -61,15 +61,15 @@ player_control::~player_control()
}
void
player_wait_decoder(struct player_control *pc, struct decoder_control *dc)
player_wait_decoder(gcc_unused struct player_control *pc,
struct decoder_control *dc)
{
assert(pc != NULL);
assert(dc != NULL);
assert(dc->client_cond == pc->cond);
/* during this function, the decoder lock is held, because
we're waiting for the decoder thread */
g_cond_wait(pc->cond, dc->mutex);
g_cond_wait(dc->client_cond, dc->mutex);
}
static void