gl/wayland: use a proxy wrapper for the wl_display
authorMatthew Waters <matthew@centricular.com>
Tue, 3 Mar 2020 00:53:53 +0000 (11:53 +1100)
committerGStreamer Merge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Wed, 4 Mar 2020 00:04:18 +0000 (00:04 +0000)
commit5ae7998a8f272c662ae923836d5fb9814b5637b5
tree5e592f4cdf1d9a167780ae879bdbb1555d0c9c59
parent3df7edaa4990285e0b635eda5c0c0bb34e1961d0
gl/wayland: use a proxy wrapper for the wl_display

This allows us to remove races when setting the wl_queue on wayland
objects with wl_proxy_set_queue() as each created object is created with
the queue already set.

We can also move all our initilization code into the window as we
can retrieve all wayland objects from each window instance.  This
removes a possible race when integrating with external API's as we would
always attempt to immediately retrieve a small set of wayland objects.
That is no longer the case with the objects from each window instance.
gst-libs/gst/gl/meson.build
gst-libs/gst/gl/wayland/gstgldisplay_wayland.c
gst-libs/gst/gl/wayland/gstgldisplay_wayland.h
gst-libs/gst/gl/wayland/gstgldisplay_wayland_private.h [deleted file]
gst-libs/gst/gl/wayland/gstglwindow_wayland_egl.c
gst-libs/gst/gl/wayland/gstglwindow_wayland_egl.h
gst-libs/gst/gl/wayland/wayland_event_source.c
gst-libs/gst/gl/wayland/wayland_event_source.h