libs: window: egl: pass native va display
authorHyunjun Ko <zzoon@igalia.com>
Wed, 2 Nov 2016 09:37:00 +0000 (18:37 +0900)
committerVíctor Manuel Jáquez Leal <victorx.jaquez@intel.com>
Thu, 3 Nov 2016 07:27:40 +0000 (08:27 +0100)
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

index e511e5e..8cabd03 100644 (file)
@@ -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;