From 98bee4240fc9b57e94524c3a68a0c4b5eaa3c538 Mon Sep 17 00:00:00 2001 From: Gwenole Beauchesne Date: Tue, 7 May 2013 15:38:51 +0200 Subject: [PATCH] display: fix set_synchronous() to lock display. --- gst-libs/gst/vaapi/gstvaapidisplay_x11.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/gst-libs/gst/vaapi/gstvaapidisplay_x11.c b/gst-libs/gst/vaapi/gstvaapidisplay_x11.c index 970b255888..cad9251915 100644 --- a/gst-libs/gst/vaapi/gstvaapidisplay_x11.c +++ b/gst-libs/gst/vaapi/gstvaapidisplay_x11.c @@ -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); + } } }