mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-18 13:25:56 +00:00
xvcontext: protect X call with lock
This commit is contained in:
parent
0cf392837d
commit
7cf890ffa0
1 changed files with 2 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue