Make sure window resize completed prior to resizing the GL viewport.

This commit is contained in:
gb 2010-03-26 11:50:31 +00:00
parent b50e7f1050
commit d84d6b0f80

View file

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