display: fix set_synchronous() to lock display.

This commit is contained in:
Gwenole Beauchesne 2013-05-07 15:38:51 +02:00
parent 4cf1213b04
commit 98bee4240f

View file

@ -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);
}
}
}