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
This commit is contained in:
Hyunjun Ko 2016-11-02 18:37:00 +09:00 committed by Víctor Manuel Jáquez Leal
parent 185da3d1a4
commit 313860dea4

View 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;