13
0

Misc fixes pertaining to plugin-scanning

This commit is contained in:
Robin Gareus 2021-05-26 02:05:36 +02:00
parent 2cf0e94d16
commit 0f25086446
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04
2 changed files with 13 additions and 1 deletions

View File

@ -2899,6 +2899,10 @@ AUPluginInfo::discover_by_description (PluginInfoList& plugs, CAComponentDescrip
}
if (is_blacklisted(CFStringRefToStdString(itemName))) {
if (itemName != NULL) {
CFRelease(itemName);
itemName = NULL;
}
info << string_compose (_("Skipped blacklisted AU plugin %1 "), CFStringRefToStdString(itemName)) << endmsg;
comp = ArdourFindNext (comp, &desc);
continue;

View File

@ -444,7 +444,15 @@ ARDOUR::vst3_scan_and_cache (std::string const& module_path, std::string const&
try {
boost::shared_ptr<VST3PluginModule> m = VST3PluginModule::load (module_path);
std::vector<VST3Info> nfo;
discover_vst3 (m, nfo, verbose);
if (!discover_vst3 (m, nfo, verbose)) {
delete root;
return false;
}
if (nfo.empty ()) {
cerr << "No plugins in VST3 module: '" << module_path << "'\n";
delete root;
return false;
}
for (std::vector<VST3Info>::const_iterator i = nfo.begin(); i != nfo.end(); ++i) {
cb (module_path, *i);
root->add_child_nocopy (i->state ());