diff --git a/subprojects/gst-plugins-bad/gst-libs/gst/va/meson.build b/subprojects/gst-plugins-bad/gst-libs/gst/va/meson.build index d01f823c94..59054ce273 100644 --- a/subprojects/gst-plugins-bad/gst-libs/gst/va/meson.build +++ b/subprojects/gst-plugins-bad/gst-libs/gst/va/meson.build @@ -17,15 +17,14 @@ va_headers = [ gstva_dep = dependency('', required : false) -va_option = get_option('va') -if va_option.disabled() or host_system != 'linux' +if host_system != 'linux' subdir_done() endif libva_req = ['>= 1.6'] -libva_dep = dependency('libva', version: libva_req, required: va_option, +libva_dep = dependency('libva', version: libva_req, required: false, fallback: ['libva', 'libva_dep']) -libva_drm_dep = dependency('libva-drm', version: libva_req, required: va_option, +libva_drm_dep = dependency('libva-drm', version: libva_req, required: false, fallback: ['libva', 'libva_drm_dep']) if not (libva_dep.found() and libva_drm_dep.found())