Copy plugin when extending the count, rather than using the same one. Should fix...
authorCarl Hetherington <carl@carlh.net>
Mon, 28 Feb 2011 02:33:07 +0000 (02:33 +0000)
committerCarl Hetherington <carl@carlh.net>
Mon, 28 Feb 2011 02:33:07 +0000 (02:33 +0000)
git-svn-id: svn://localhost/ardour2/branches/3.0@8982 d708f5d6-7413-0410-9779-e7cbd77b26cf

libs/ardour/plugin_insert.cc

index 1484bd7294353603a993907d6f49121dbfaeba37..41e1376b9a33a267944dd421f25d271a07f0f618 100644 (file)
@@ -94,7 +94,7 @@ PluginInsert::set_count (uint32_t num)
                uint32_t diff = num - _plugins.size();
 
                for (uint32_t n = 0; n < diff; ++n) {
-                       add_plugin_with_activation (_plugins[0]);
+                       add_plugin_with_activation (plugin_factory (_plugins[0]));
 
                        if (require_state) {
                                /* XXX do something */