summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorWim Taymans <wim.taymans@collabora.co.uk>2013-03-14 15:44:53 +0100
committerWim Taymans <wim.taymans@collabora.co.uk>2013-03-14 15:44:53 +0100
commit7cf890ffa08e70c4e7527510eade5feda1a8a61f (patch)
tree99452dfe82057e42011394b360b4cabb2080756f /sys
parent0cf392837d6660e05b54ea0b8682471359bf35d1 (diff)
xvcontext: protect X call with lock
Diffstat (limited to 'sys')
-rw-r--r--sys/xvimage/xvcontext.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/xvimage/xvcontext.c b/sys/xvimage/xvcontext.c
index 52f3dc5ab..b524644e2 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