d3d11: Use g_cond_broadcast() to wake up waiting threads

gst_d3d11_device_thread_add() can be called concurrently from different
threads so the cond signal should reach to all waiting threads.
This commit is contained in:
Seungha Yang 2019-09-18 18:43:41 +09:00
parent 2af2402880
commit e0b2d34237

View file

@ -653,7 +653,7 @@ gst_d3d11_device_message_callback (MessageData * msg)
g_mutex_lock (&priv->lock);
msg->fired = TRUE;
g_cond_signal (&priv->cond);
g_cond_broadcast (&priv->cond);
g_mutex_unlock (&priv->lock);
return G_SOURCE_REMOVE;