mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-14 18:46:34 +01:00
Connect route-template insert i/o ports #5778
This commit is contained in:
parent
a534258594
commit
d61683809d
2 changed files with 5 additions and 3 deletions
|
|
@ -631,7 +631,8 @@ IO::set_state (const XMLNode& node, int version)
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ((prop = node.property ("name")) != 0) {
|
bool ignore_name = node.property ("ignore-name");
|
||||||
|
if ((prop = node.property ("name")) != 0 && !ignore_name) {
|
||||||
set_name (prop->value());
|
set_name (prop->value());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -152,6 +152,7 @@ IOProcessor::set_state (const XMLNode& node, int version)
|
||||||
|
|
||||||
Processor::set_state(node, version);
|
Processor::set_state(node, version);
|
||||||
|
|
||||||
|
bool ignore_name = node.property ("ignore-name");
|
||||||
|
|
||||||
if ((prop = node.property ("own-input")) != 0) {
|
if ((prop = node.property ("own-input")) != 0) {
|
||||||
_own_input = string_is_affirmative (prop->value());
|
_own_input = string_is_affirmative (prop->value());
|
||||||
|
|
@ -172,7 +173,7 @@ IOProcessor::set_state (const XMLNode& node, int version)
|
||||||
for (niter = nlist.begin(); niter != nlist.end(); ++niter) {
|
for (niter = nlist.begin(); niter != nlist.end(); ++niter) {
|
||||||
XMLProperty const * prop;
|
XMLProperty const * prop;
|
||||||
if ((prop = (*niter)->property ("name")) != 0) {
|
if ((prop = (*niter)->property ("name")) != 0) {
|
||||||
if (_name == prop->value()) {
|
if (_name == prop->value() || ignore_name) {
|
||||||
if ((prop = (*niter)->property ("direction")) != 0) {
|
if ((prop = (*niter)->property ("direction")) != 0) {
|
||||||
if (prop->value() == instr) {
|
if (prop->value() == instr) {
|
||||||
io_node = (*niter);
|
io_node = (*niter);
|
||||||
|
|
@ -202,7 +203,7 @@ IOProcessor::set_state (const XMLNode& node, int version)
|
||||||
if ((*niter)->name() == "IO") {
|
if ((*niter)->name() == "IO") {
|
||||||
XMLProperty const * prop;
|
XMLProperty const * prop;
|
||||||
if ((prop = (*niter)->property ("name")) != 0) {
|
if ((prop = (*niter)->property ("name")) != 0) {
|
||||||
if (_name == prop->value()) {
|
if (_name == prop->value() || ignore_name) {
|
||||||
if ((prop = (*niter)->property ("direction")) != 0) {
|
if ((prop = (*niter)->property ("direction")) != 0) {
|
||||||
if (prop->value() == outstr) {
|
if (prop->value() == outstr) {
|
||||||
io_node = (*niter);
|
io_node = (*niter);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue