gl/wayland: Use consistent wl_display when creating work queue for proxy wrapper

Without this, glimagesink since wayland 727c7903 fails with
gst-launch-1.0: ../src/wayland-client.c:2181: wl_proxy_set_queue:
Assertion 'proxy->display == queue->display' failed.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-base/-/merge_requests/1200>
This commit is contained in:
Scott Moreau 2021-06-11 09:27:46 -06:00
parent 58f4217468
commit 885c1c605b

View file

@ -561,8 +561,7 @@ gst_gl_window_wayland_egl_open (GstGLWindow * window, GError ** error)
* each wayland resource we create as well as removing a race between
* creation and the `wl_proxy_set_queue()` call. */
window_egl->display.display = wl_proxy_create_wrapper (display->display);
window_egl->window.queue =
wl_display_create_queue (window_egl->display.display);
window_egl->window.queue = wl_display_create_queue (display->display);
wl_proxy_set_queue ((struct wl_proxy *) window_egl->display.display,
window_egl->window.queue);