when renaming redirects, scan all routes AND sends AND port inserts for the name...
[ardour.git] / libs / ardour / globals.cc
index 08b87bdd36335c85617ae23381701024262cab98..65740d5a5d0ec8430901f6b3af3bff21eaeb1baa 100644 (file)
@@ -119,6 +119,7 @@ setup_osc ()
                return 0;
        }
 }
+
 #endif
 
 int
@@ -329,15 +330,15 @@ ARDOUR::init (bool use_vst, bool try_optimization)
 #endif
 
 #ifdef VST_SUPPORT
-       if (Config->get_use_vst() && fst_init ()) {
-               return -1;
+       if (Config->get_use_vst() && fst_init (0)) {
+               return -1;
        }
 #endif
 
 #ifdef HAVE_AUDIOUNITS
        AUPluginInfo::load_cached_info ();
 #endif
-       
+
        /* Make VAMP look in our library ahead of anything else */
 
        char *p = getenv ("VAMP_PATH");
@@ -377,6 +378,9 @@ ARDOUR::cleanup ()
        delete Library;
        lrdf_cleanup ();
        delete &ControlProtocolManager::instance();
+#ifdef VST_SUPPORT
+       fst_exit ();
+#endif
        return 0;
 }