xvcontext: protect X call with lock

This commit is contained in:
Wim Taymans 2013-03-14 15:44:53 +01:00
parent 0cf392837d
commit 7cf890ffa0

View file

@ -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);
}
void