mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-10 16:46:35 +01:00
Misc fixes pertaining to plugin-scanning
This commit is contained in:
parent
2cf0e94d16
commit
0f25086446
2 changed files with 13 additions and 1 deletions
|
|
@ -2899,6 +2899,10 @@ AUPluginInfo::discover_by_description (PluginInfoList& plugs, CAComponentDescrip
|
||||||
}
|
}
|
||||||
|
|
||||||
if (is_blacklisted(CFStringRefToStdString(itemName))) {
|
if (is_blacklisted(CFStringRefToStdString(itemName))) {
|
||||||
|
if (itemName != NULL) {
|
||||||
|
CFRelease(itemName);
|
||||||
|
itemName = NULL;
|
||||||
|
}
|
||||||
info << string_compose (_("Skipped blacklisted AU plugin %1 "), CFStringRefToStdString(itemName)) << endmsg;
|
info << string_compose (_("Skipped blacklisted AU plugin %1 "), CFStringRefToStdString(itemName)) << endmsg;
|
||||||
comp = ArdourFindNext (comp, &desc);
|
comp = ArdourFindNext (comp, &desc);
|
||||||
continue;
|
continue;
|
||||||
|
|
|
||||||
|
|
@ -444,7 +444,15 @@ ARDOUR::vst3_scan_and_cache (std::string const& module_path, std::string const&
|
||||||
try {
|
try {
|
||||||
boost::shared_ptr<VST3PluginModule> m = VST3PluginModule::load (module_path);
|
boost::shared_ptr<VST3PluginModule> m = VST3PluginModule::load (module_path);
|
||||||
std::vector<VST3Info> nfo;
|
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) {
|
for (std::vector<VST3Info>::const_iterator i = nfo.begin(); i != nfo.end(); ++i) {
|
||||||
cb (module_path, *i);
|
cb (module_path, *i);
|
||||||
root->add_child_nocopy (i->state ());
|
root->add_child_nocopy (i->state ());
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue