mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-17 22:06:41 +00:00
display: fix set_synchronous() to lock display.
This commit is contained in:
parent
4cf1213b04
commit
98bee4240f
1 changed files with 4 additions and 1 deletions
|
@ -139,8 +139,11 @@ set_synchronous(GstVaapiDisplayX11 *display, gboolean synchronous)
|
||||||
|
|
||||||
if (priv->synchronous != synchronous) {
|
if (priv->synchronous != synchronous) {
|
||||||
priv->synchronous = synchronous;
|
priv->synchronous = synchronous;
|
||||||
if (priv->x11_display)
|
if (priv->x11_display) {
|
||||||
|
GST_VAAPI_DISPLAY_LOCK(display);
|
||||||
XSynchronize(priv->x11_display, synchronous);
|
XSynchronize(priv->x11_display, synchronous);
|
||||||
|
GST_VAAPI_DISPLAY_UNLOCK(display);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue