prepare fix for copying plugin state
This commit is contained in:
parent
0d1cd3865d
commit
bc0bb9662e
@ -2071,8 +2071,6 @@ PluginInsert::set_state(const XMLNode& node, int version)
|
||||
_custom_cfg = string_is_affirmative (prop->value());
|
||||
}
|
||||
|
||||
// TODO load/add sidechain
|
||||
|
||||
uint32_t in_maps = 0;
|
||||
uint32_t out_maps = 0;
|
||||
XMLNodeList kids = node.children ();
|
||||
@ -2097,6 +2095,8 @@ PluginInsert::set_state(const XMLNode& node, int version)
|
||||
if ((*i)->name () == "ThruMap") {
|
||||
_thru_map = ChanMapping (**i);
|
||||
}
|
||||
|
||||
// sidechain is a Processor (IO)
|
||||
if ((*i)->name () == Processor::state_node_name) {
|
||||
if (!_sidechain) {
|
||||
add_sidechain (0);
|
||||
@ -2117,6 +2117,7 @@ PluginInsert::set_state(const XMLNode& node, int version)
|
||||
}
|
||||
}
|
||||
|
||||
PluginConfigChanged (); /* EMIT SIGNAL */
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
@ -1466,7 +1466,6 @@ Route::add_processors (const ProcessorList& others, boost::shared_ptr<Processor>
|
||||
boost::shared_ptr<PluginInsert> pi;
|
||||
|
||||
if ((pi = boost::dynamic_pointer_cast<PluginInsert>(*i)) != 0) {
|
||||
pi->set_count (1); // why? configure_processors_unlocked() will re-do this
|
||||
pi->set_strict_io (_strict_io);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user