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
No known key found for this signature in database
GPG key ID: A090BCE02CF57F04

View file

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