filter-chain: disable lilv code when not available

This commit is contained in:
Wim Taymans 2021-12-10 18:46:06 +01:00
parent 597b332666
commit bcd867f8eb
2 changed files with 5 additions and 0 deletions

View file

@ -432,6 +432,9 @@ summary({'OpenSSL (for raop-sink)': openssl_lib.found()}, bool_yn: true)
lilv_lib = dependency('lilv-0', required: get_option('lv2'))
summary({'lilv (for lv2 plugins)': lilv_lib.found()}, bool_yn: true)
if lilv_lib.found()
cdata.set('HAVE_LILV', 1)
endif
installed_tests_metadir = pipewire_datadir / 'installed-tests' / pipewire_name
installed_tests_execdir = pipewire_libexecdir / 'installed-tests' / pipewire_name

View file

@ -754,9 +754,11 @@ static struct plugin *plugin_load(struct impl *impl, const char *type, const cha
else if (spa_streq(type, "ladspa")) {
pl = load_ladspa_plugin(path, NULL);
}
#ifdef HAVE_LILV
else if (spa_streq(type, "lv2")) {
pl = load_lv2_plugin(path, NULL);
}
#endif
if (pl == NULL)
goto exit;