Commit 98bee424 authored by Gwenole Beauchesne's avatar Gwenole Beauchesne

display: fix set_synchronous() to lock display.

parent 4cf1213b
......@@ -139,8 +139,11 @@ set_synchronous(GstVaapiDisplayX11 *display, gboolean synchronous)
if (priv->synchronous != synchronous) {
priv->synchronous = synchronous;
if (priv->x11_display)
if (priv->x11_display) {
GST_VAAPI_DISPLAY_LOCK(display);
XSynchronize(priv->x11_display, synchronous);
GST_VAAPI_DISPLAY_UNLOCK(display);
}
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment