Tidy up PluginInsert's handling of how it chooses to map plugin IO to that of the...
[ardour.git] / libs / ardour / plugin_manager.cc
index 6279140795bdac99a515b900f5b76a4eb4751a95..204867a43dab5527884017197f312f62542503fe 100644 (file)
@@ -135,9 +135,9 @@ PluginManager::PluginManager ()
        }
 
        if ((s = getenv ("LXVST_PATH"))) {
-               vst_path = s;
+               lxvst_path = s;
        } else if ((s = getenv ("LXVST_PLUGINS"))) {
-               vst_path = s;
+               lxvst_path = s;
        }
 
        if (_manager == 0) {
@@ -628,13 +628,14 @@ PluginManager::vst_discover (string path)
 void
 PluginManager::lxvst_refresh ()
 {
-       if (_lxvst_plugin_info)
+       if (_lxvst_plugin_info) {
                _lxvst_plugin_info->clear ();
-       else
+       } else {
                _lxvst_plugin_info = new ARDOUR::PluginInfoList();
+       }
 
        if (lxvst_path.length() == 0) {
-               lxvst_path = "/usr/local/lib/lxvst:/usr/lib/lxvst";
+               lxvst_path = "/usr/local/lib64/lxvst:/usr/local/lib/lxvst:/usr/lib64/lxvst:/usr/lib/lxvst";
        }
 
        lxvst_discover_from_path (lxvst_path);