vaapi: Disable Wayland if no libdrm
authorVíctor Manuel Jáquez Leal <vjaquez@igalia.com>
Sun, 30 Jan 2022 08:38:48 +0000 (09:38 +0100)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Mon, 31 Jan 2022 13:33:31 +0000 (13:33 +0000)
commita6a8a136087f674cde1e64022b75ff2a773846e4
tree4e20e5c0eacbcda89057b58c1dd81103ebe03a2d
parent2fc4e928d6b0440f666f901b6ebef43b9199d9e0
vaapi: Disable Wayland if no libdrm

Platform wise, is not possible, as far as I known, to have Wayland
without kernel's DRM. Though, it's possible to configure
gstreamer-vaapi without DRM but Wayland support, with the enhanced
handling of dmabuf in vaapisink for Wayland, vaapisink will always
fail. Given both issues, configuration with no DRM but Wayland, makes
things more complex, and a simpler approach is to refuse that
configuration.

This patch disables Wayland support if there isn't DRM support. Also,
it disables the display test for Wayland, relying only on DRM and
X11.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1606>
subprojects/gstreamer-vaapi/gst/vaapi/gstvaapipluginutil.c
subprojects/gstreamer-vaapi/meson.build