Skip to content

Commit

Permalink
gl/wayland: Use consistent wl_display when creating work queue for pr…
Browse files Browse the repository at this point in the history
…oxy 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>
  • Loading branch information
soreau committed Jun 11, 2021
1 parent 58f4217 commit 885c1c6
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions gst-libs/gst/gl/wayland/gstglwindow_wayland_egl.c
Expand Up @@ -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);
Expand Down

0 comments on commit 885c1c6

Please sign in to comment.