decoder_control: removed the global variable "dc"
Allocate a decoder_control object where needed, and pass it around. This will allow more than one decoder thread one day.
This commit is contained in:
@@ -53,11 +53,11 @@ void pc_deinit(void)
|
||||
}
|
||||
|
||||
void
|
||||
player_wait_decoder(void)
|
||||
player_wait_decoder(struct decoder_control *dc)
|
||||
{
|
||||
/* 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(pc.cond, dc->mutex);
|
||||
}
|
||||
|
||||
void
|
||||
|
||||
Reference in New Issue
Block a user