13
0

Downgrade LADSPA scan errors to warnings

There's nothing that a casual user can about failure to scan
LADSPA plugins. So just inform the user.
It's not an error to worry about.
This commit is contained in:
Robin Gareus 2019-04-02 01:51:36 +02:00
parent 6d335be418
commit 8f5e5c4c60
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04

View File

@ -91,27 +91,27 @@ LadspaPlugin::init (string module_path, uint32_t index, samplecnt_t rate)
_was_activated = false;
if (!(*_module)) {
error << _("LADSPA: Unable to open module: ") << Glib::Module::get_last_error() << endmsg;
warning << _("LADSPA: Unable to open module: ") << Glib::Module::get_last_error() << endmsg;
delete _module;
throw failed_constructor();
}
if (!_module->get_symbol("ladspa_descriptor", func)) {
error << _("LADSPA: module has no descriptor function.") << endmsg;
warning << _("LADSPA: module has no descriptor function.") << endmsg;
throw failed_constructor();
}
dfunc = (LADSPA_Descriptor_Function)func;
if ((_descriptor = dfunc (index)) == 0) {
error << _("LADSPA: plugin has gone away since discovery!") << endmsg;
warning << _("LADSPA: plugin has gone away since discovery!") << endmsg;
throw failed_constructor();
}
_index = index;
if (LADSPA_IS_INPLACE_BROKEN(_descriptor->Properties)) {
error << string_compose(_("LADSPA: \"%1\" cannot be used, since it cannot do inplace processing"), _descriptor->Name) << endmsg;
info << string_compose(_("LADSPA: \"%1\" cannot be used, since it cannot do inplace processing"), _descriptor->Name) << endmsg;
throw failed_constructor();
}