diff options
author | Robin Gareus <robin@gareus.org> | 2014-09-10 20:44:17 +0200 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2014-09-10 20:44:17 +0200 |
commit | 6f59288f9e5a6fa7b8bf8f70e89e141c8db5ee97 (patch) | |
tree | 0c20c84d8e60cc0dce03a8c71d14de19591ff640 | |
parent | f6766d4a2f198614e8272c02aa16fe1957c7702f (diff) |
print "Scanning folders for bundled LV2s" only once.
-rw-r--r-- | libs/ardour/lv2_plugin.cc | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/libs/ardour/lv2_plugin.cc b/libs/ardour/lv2_plugin.cc index 54a8b03848..9a763bc2b3 100644 --- a/libs/ardour/lv2_plugin.cc +++ b/libs/ardour/lv2_plugin.cc @@ -113,7 +113,7 @@ public: LV2World (); ~LV2World (); - void load_bundled_plugins(); + void load_bundled_plugins(bool verbose=false); LilvWorld* world; @@ -2018,10 +2018,12 @@ LV2World::~LV2World() } void -LV2World::load_bundled_plugins() +LV2World::load_bundled_plugins(bool verbose) { if (!_bundle_checked) { - cout << "Scanning folders for bundled LV2s: " << ARDOUR::lv2_bundled_search_path().to_string() << endl; + if (verbose) { + cout << "Scanning folders for bundled LV2s: " << ARDOUR::lv2_bundled_search_path().to_string() << endl; + } vector<string> plugin_objects; find_paths_matching_filter (plugin_objects, ARDOUR::lv2_bundled_search_path(), lv2_filter, 0, true, true, true); @@ -2078,7 +2080,7 @@ LV2PluginInfo::discover() { LV2World world; world.load_bundled_plugins(); - _world.load_bundled_plugins(); + _world.load_bundled_plugins(true); PluginInfoList* plugs = new PluginInfoList; const LilvPlugins* plugins = lilv_world_get_all_plugins(world.world); |