added RCU handling of Session route list, and major use of shared_ptr<T> everywhere...
[ardour.git] / gtk2_ardour / plugin_selector.cc
index 56f5fab9c8675aa8d862fd2c1ca287b0eaf919f4..a762a0b186ac282e527d7379fcb25669790380af 100644 (file)
@@ -36,6 +36,7 @@
 #include "i18n.h"
 
 using namespace ARDOUR;
+using namespace PBD;
 using namespace Gtk;
 
 PluginSelector::PluginSelector (PluginManager *mgr)
@@ -149,6 +150,9 @@ PluginSelector::PluginSelector (PluginManager *mgr)
        added_list.get_selection()->signal_changed().connect (mem_fun(*this, &PluginSelector::added_list_selection_changed));
 
        input_refiller ();
+#ifdef VST_SUPPORT
+       vst_refiller ();
+#endif
 }
 
 void
@@ -249,7 +253,7 @@ PluginSelector::use_plugin (PluginInfo* pi)
                return;
        }
 
-       Plugin *plugin = manager->load (*session, pi);
+       boost::shared_ptr<Plugin> plugin = manager->load (*session, pi);
 
        if (plugin) {
                PluginCreated (plugin);
@@ -306,6 +310,9 @@ PluginSelector::btn_update_clicked()
 {
        manager->refresh ();
        input_refiller ();
+#ifdef VST_SUPPORT
+       vst_refiller ();
+#endif 
 }
 
 #ifdef VST_SUPPORT