meson: va: Make AV1 support always optional
authorSeungha Yang <seungha@centricular.com>
Sat, 18 Sep 2021 09:07:43 +0000 (18:07 +0900)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Sun, 19 Sep 2021 21:20:54 +0000 (21:20 +0000)
Otherwise meson configure with -Dva=enabled will be failed
when installed libva version is < 1.8

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/2532>

sys/va/meson.build

index a86a906..e7b39b5 100644 (file)
@@ -33,8 +33,9 @@ if not gstva_dep.found()
   subdir_done()
 endif
 
+# Keep av1 support optional as long as required libva version in gst-libs/va is < 1.8
 libva_av1_req = ['>= 1.8']
-libva_av1_dep = dependency('libva', version: libva_av1_req, required: va_option)
+libva_av1_dep = dependency('libva', version: libva_av1_req, required: false)
 if libva_av1_dep.found()
   va_sources += 'gstvaav1dec.c'
 endif