mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-10 03:19:40 +00:00
Make sure window resize completed prior to resizing the GL viewport.
This commit is contained in:
parent
b50e7f1050
commit
d84d6b0f80
1 changed files with 1 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue