Commit 7cf890ff authored by Wim Taymans's avatar Wim Taymans

xvcontext: protect X call with lock

parent 0cf39283
......@@ -798,7 +798,9 @@ gst_xvcontext_set_synchronous (GstXvContext * context, gboolean synchronous)
/* call XSynchronize with the current value of synchronous */
GST_DEBUG ("XSynchronize called with %s", synchronous ? "TRUE" : "FALSE");
g_mutex_lock (&context->lock);
XSynchronize (context->disp, synchronous);
g_mutex_unlock (&context->lock);
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment