diff --git a/sys/xvimage/xvcontext.c b/sys/xvimage/xvcontext.c index 52f3dc5abd..b524644e26 100644 --- a/sys/xvimage/xvcontext.c +++ b/sys/xvimage/xvcontext.c @@ -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