Fix finding of bundled LV2 plugins
[ardour.git] / libs / ardour / lv2_plugin.cc
index 6ae99302da17355c94a2470b0cff8e8151b81dae..1bdb2f20d6e76921a51833b6fa539813c328f223 100644 (file)
@@ -31,7 +31,6 @@
 
 #include <boost/utility.hpp>
 
-#include "pbd/clear_dir.h"
 #include "pbd/file_utils.h"
 #include "pbd/stl_delete.h"
 #include "pbd/compose.h"
@@ -2016,7 +2015,7 @@ LV2World::load_bundled_plugins()
                cout << "Scanning folders for bundled LV2s: " << ARDOUR::lv2_bundled_search_path().to_string() << endl;
 
                vector<string> plugin_objects;
-               find_files_matching_filter (plugin_objects, ARDOUR::lv2_bundled_search_path().to_string(), lv2_filter, 0, true, true);
+               find_paths_matching_filter (plugin_objects, ARDOUR::lv2_bundled_search_path(), lv2_filter, 0, true, true, true);
                for ( vector<string>::iterator x = plugin_objects.begin(); x != plugin_objects.end (); ++x) {
 #ifdef PLATFORM_WINDOWS
                        string uri = "file:///" + *x + "/";