From d84d6b0f8041e2dcfacd9a46e5edb0ed08eacd5f Mon Sep 17 00:00:00 2001 From: gb Date: Fri, 26 Mar 2010 11:50:31 +0000 Subject: [PATCH] Make sure window resize completed prior to resizing the GL viewport. --- gst-libs/gst/vaapi/gstvaapiwindow_glx.c | 1 + 1 file changed, 1 insertion(+) diff --git a/gst-libs/gst/vaapi/gstvaapiwindow_glx.c b/gst-libs/gst/vaapi/gstvaapiwindow_glx.c index f99caf2..b516a29 100644 --- a/gst-libs/gst/vaapi/gstvaapiwindow_glx.c +++ b/gst-libs/gst/vaapi/gstvaapiwindow_glx.c @@ -274,6 +274,7 @@ gst_vaapi_window_glx_resize(GstVaapiWindow *window, guint width, guint height) return FALSE; GST_VAAPI_OBJECT_LOCK_DISPLAY(window); + XSync(dpy, False); /* make sure resize completed */ if (gl_make_current(dpy, GST_VAAPI_OBJECT_ID(window), priv->context, &cs)) { gl_resize(width, height); if (cs.context) -- 2.7.4