From 313860dea483458557fb83a543940660cd55cd0f Mon Sep 17 00:00:00 2001 From: Hyunjun Ko Date: Wed, 2 Nov 2016 18:37:00 +0900 Subject: [PATCH] libs: window: egl: pass native va display When creating a GstVaapiWindowEGL, it also creates native window by its own native display. It should pass the native display, either X11 or Wayland. https://bugzilla.gnome.org/show_bug.cgi?id=768266 --- gst-libs/gst/vaapi/gstvaapiwindow_egl.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gst-libs/gst/vaapi/gstvaapiwindow_egl.c b/gst-libs/gst/vaapi/gstvaapiwindow_egl.c index e511e5eba6..8cabd03e4d 100644 --- a/gst-libs/gst/vaapi/gstvaapiwindow_egl.c +++ b/gst-libs/gst/vaapi/gstvaapiwindow_egl.c @@ -228,7 +228,8 @@ gst_vaapi_window_egl_create (GstVaapiWindowEGL * window, g_return_val_if_fail (native_dpy_class != NULL, FALSE); - window->window = native_dpy_class->create_window (GST_VAAPI_DISPLAY (display), + window->window = + native_dpy_class->create_window (GST_VAAPI_DISPLAY (display->display), GST_VAAPI_ID_INVALID, *width, *height); if (!window->window) return FALSE;