13
0

Downgrade LV1 error to warning

Failing to discover a plugin is not critical. If the plugin is
used by the session, an error message is displayed later.
This commit is contained in:
Robin Gareus 2020-06-05 17:29:42 +02:00
parent 743a3b1842
commit ab9f51d2d8
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04

View File

@ -777,15 +777,15 @@ PluginManager::ladspa_discover (string path)
void* func = 0;
if (!module) {
error << string_compose(_("LADSPA: cannot load module \"%1\" (%2)"),
warning << string_compose(_("LADSPA: cannot load module \"%1\" (%2)"),
path, Glib::Module::get_last_error()) << endmsg;
return -1;
}
if (!module.get_symbol("ladspa_descriptor", func)) {
error << string_compose(_("LADSPA: module \"%1\" has no descriptor function."), path) << endmsg;
error << Glib::Module::get_last_error() << endmsg;
warning << string_compose(_("LADSPA: module \"%1\" has no descriptor function."), path) << endmsg;
warning << Glib::Module::get_last_error() << endmsg;
return -1;
}