gstwayland: Move reusable parts of the waylandsink into a library
authorRobert Mader <robert.mader@collabora.com>
Tue, 4 Jan 2022 14:20:41 +0000 (15:20 +0100)
committerRobert Mader <robert.mader@collabora.com>
Mon, 6 Jun 2022 12:36:39 +0000 (14:36 +0200)
commit8c3e33d4941e6e6796ab96bc966805c5b8b5f757
tree3d1f6aa140d87d86b224ad6bb98500647c08ad2e
parentd86ad30be2648dca354315597b706c6fdb7e6d4c
gstwayland: Move reusable parts of the waylandsink into a library

In preparation for the new element `GstGtkWaylandSink`, move reusable
parts out of `GstWaylandSink` into the already exisiting but very
barebone library.

Notable changes include:
 - the `GstWaylandVideo` interface was dropped
 - support for `wl-shell` was dropped
 - lots of renaming in order to match established naming patterns
 - lots of code modernisations, reducing boilerplate
 - members were made private wherever possible

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/2479>
31 files changed:
subprojects/gst-plugins-bad/docs/plugins/gst_plugins_cache.json
subprojects/gst-plugins-bad/ext/wayland/gstwaylandsink.c
subprojects/gst-plugins-bad/ext/wayland/gstwaylandsink.h
subprojects/gst-plugins-bad/ext/wayland/meson.build
subprojects/gst-plugins-bad/ext/wayland/wldisplay.c [deleted file]
subprojects/gst-plugins-bad/ext/wayland/wldisplay.h [deleted file]
subprojects/gst-plugins-bad/ext/wayland/wlwindow.c [deleted file]
subprojects/gst-plugins-bad/ext/wayland/wlwindow.h [deleted file]
subprojects/gst-plugins-bad/gst-libs/gst/wayland/gstwl_fwd.h [new file with mode: 0644]
subprojects/gst-plugins-bad/gst-libs/gst/wayland/gstwlbuffer.c [moved from subprojects/gst-plugins-bad/ext/wayland/wlbuffer.c with 75% similarity]
subprojects/gst-plugins-bad/gst-libs/gst/wayland/gstwlbuffer.h [moved from subprojects/gst-plugins-bad/ext/wayland/wlbuffer.h with 53% similarity]
subprojects/gst-plugins-bad/gst-libs/gst/wayland/gstwlcontext.c [new file with mode: 0644]
subprojects/gst-plugins-bad/gst-libs/gst/wayland/gstwlcontext.h [new file with mode: 0644]
subprojects/gst-plugins-bad/gst-libs/gst/wayland/gstwldisplay.c [new file with mode: 0644]
subprojects/gst-plugins-bad/gst-libs/gst/wayland/gstwldisplay.h [new file with mode: 0644]
subprojects/gst-plugins-bad/gst-libs/gst/wayland/gstwllinuxdmabuf.c [moved from subprojects/gst-plugins-bad/ext/wayland/wllinuxdmabuf.c with 88% similarity]
subprojects/gst-plugins-bad/gst-libs/gst/wayland/gstwllinuxdmabuf.h [moved from subprojects/gst-plugins-bad/ext/wayland/wllinuxdmabuf.h with 84% similarity]
subprojects/gst-plugins-bad/gst-libs/gst/wayland/gstwlshmallocator.c [moved from subprojects/gst-plugins-bad/ext/wayland/wlshmallocator.c with 87% similarity]
subprojects/gst-plugins-bad/gst-libs/gst/wayland/gstwlshmallocator.h [moved from subprojects/gst-plugins-bad/ext/wayland/wlshmallocator.h with 52% similarity]
subprojects/gst-plugins-bad/gst-libs/gst/wayland/gstwlvideobufferpool.c [new file with mode: 0644]
subprojects/gst-plugins-bad/gst-libs/gst/wayland/gstwlvideobufferpool.h [new file with mode: 0644]
subprojects/gst-plugins-bad/gst-libs/gst/wayland/gstwlvideoformat.c [moved from subprojects/gst-plugins-bad/ext/wayland/wlvideoformat.c with 91% similarity]
subprojects/gst-plugins-bad/gst-libs/gst/wayland/gstwlvideoformat.h [moved from subprojects/gst-plugins-bad/ext/wayland/wlvideoformat.h with 87% similarity]
subprojects/gst-plugins-bad/gst-libs/gst/wayland/gstwlwindow.c [new file with mode: 0644]
subprojects/gst-plugins-bad/gst-libs/gst/wayland/gstwlwindow.h [new file with mode: 0644]
subprojects/gst-plugins-bad/gst-libs/gst/wayland/meson.build
subprojects/gst-plugins-bad/gst-libs/gst/wayland/wayland-prelude.h [new file with mode: 0644]
subprojects/gst-plugins-bad/gst-libs/gst/wayland/wayland.c [deleted file]
subprojects/gst-plugins-bad/gst-libs/gst/wayland/wayland.h
subprojects/gst-plugins-bad/tests/examples/waylandsink/main.c
subprojects/gst-plugins-bad/tests/examples/waylandsink/wayland-threads.c