gtkglsink: Release the widget lock when trying to get the GL context
Otherwise we might be waiting for the lock on the main loop (for example in the ->render vmethod) and thus we will deadlock.
This commit is contained in:
parent
c28d90de68
commit
31b770af0b
@ -683,7 +683,9 @@ gtk_gst_gl_widget_init_winsys (GtkGstGLWidget * widget)
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (!widget->priv->other_context) {
|
if (!widget->priv->other_context) {
|
||||||
|
g_mutex_unlock (&widget->priv->lock);
|
||||||
_invoke_on_main ((ThreadFunc) _get_gl_context, widget);
|
_invoke_on_main ((ThreadFunc) _get_gl_context, widget);
|
||||||
|
g_mutex_lock (&widget->priv->lock);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!GST_GL_IS_CONTEXT (widget->priv->other_context)) {
|
if (!GST_GL_IS_CONTEXT (widget->priv->other_context)) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user