From 04d6407197182d480084fd2e563b78302fa104cc Mon Sep 17 00:00:00 2001 From: odrling Date: Mon, 17 Jun 2024 15:26:02 +0200 Subject: [PATCH] meson: pick up system bestsource library when available --- meson.build | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/meson.build b/meson.build index 9327ddc826..87ab12b18a 100644 --- a/meson.build +++ b/meson.build @@ -249,8 +249,7 @@ needs_ffmpeg = false if get_option('bestsource').enabled() conf.set('WITH_BESTSOURCE', 1) - bs = subproject('bestsource', default_options: ['enable_plugin=false']) - deps += bs.get_variable('bestsource_dep') + deps = [dependency('bestsource', fallback: ['bestsource', 'bestsource_dep'], default_options: ['enable_plugin=false'], required: true)] dep_avail += 'BestSource' needs_ffmpeg = true endif