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