diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2011-06-09 13:55:52 +0000 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2011-06-09 13:55:52 +0000 |
commit | 1a2a58fdd61efeff7ae5ebbb699526220bb47a6f (patch) | |
tree | 131a8a0760b0803a1d4e8d978741819d7c5f0144 /libs | |
parent | 966b62516f2435c51ea0e44d6a38c2f00d3b9f9f (diff) |
don't call Processor::set_state() from PluginInsert::set_state() till the plugins are present in the container, so that describe_parameter() can work
git-svn-id: svn://localhost/ardour2/branches/3.0@9696 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs')
-rw-r--r-- | libs/ardour/plugin_insert.cc | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/libs/ardour/plugin_insert.cc b/libs/ardour/plugin_insert.cc index de7f011e97..a92427409c 100644 --- a/libs/ardour/plugin_insert.cc +++ b/libs/ardour/plugin_insert.cc @@ -886,7 +886,6 @@ PluginInsert::set_state(const XMLNode& node, int version) need_automatables = true; } - Processor::set_state (node, version); plugin->set_insert_info (this); if ((prop = node.property ("count")) != 0) { @@ -920,6 +919,12 @@ PluginInsert::set_state(const XMLNode& node, int version) } } + /* we cannot call this until the _plugins contains at least 1 + plugin so that we can look up parameter information etc. + */ + + Processor::set_state (node, version); + if (need_automatables) { set_automatable (); set_control_ids (node, version); |