From 7cf890ffa08e70c4e7527510eade5feda1a8a61f Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Thu, 14 Mar 2013 15:44:53 +0100 Subject: [PATCH] xvcontext: protect X call with lock --- sys/xvimage/xvcontext.c | 2 ++ 1 file changed, 2 insertions(+) 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