# HG changeset patch # User Chris Cannam # Date 1478016135 0 # Node ID 0492e54ccd5693d54e81c75c3fe0e0506909ebd9 # Parent 604b0b2a58e1e85ce250aa342dea8d1b6afaf60b Logging; use only first ("native") helper for non-Vamp plugins diff -r 604b0b2a58e1 -r 0492e54ccd56 plugin/PluginScan.cpp --- a/plugin/PluginScan.cpp Tue Nov 01 15:09:44 2016 +0000 +++ b/plugin/PluginScan.cpp Tue Nov 01 16:02:15 2016 +0000 @@ -95,10 +95,29 @@ } QStringList candidates; + for (auto kp: m_kp) { + auto c = kp->getCandidateLibrariesFor(kpt); + + std::cerr << "PluginScan: helper \"" << kp->getHelperExecutableName() + << "\" likes " << c.size() << " libraries of type " + << kp->getTagFor(kpt) << std::endl; + for (auto s: c) candidates.push_back(s.c_str()); + + if (type != VampPlugin) { + // We are only interested in querying multiple helpers + // when dealing with Vamp plugins, for which we can use + // external servers and so in some cases can support + // additional architectures. Other plugin formats are + // loaded directly and so must match the host, which is + // what the first helper is supposed to handle -- so + // break after the first one if not querying Vamp + break; + } } + return candidates; }