summaryrefslogtreecommitdiff
path: root/libs/ardour/io_processor.cc
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2012-03-13 20:14:55 +0000
committerPaul Davis <paul@linuxaudiosystems.com>2012-03-13 20:14:55 +0000
commitd46acb86eaa3a94fb2dc673964271ecfe0f004dd (patch)
treee6e24673cff96baf335a2aa3583a8d8a8857d2a1 /libs/ardour/io_processor.cc
parentb557061ec444cdac8b23d6e433a6fe26c1e176a1 (diff)
redesign how XML state, bitslots and names get propagated during copying a send/port insert/return
git-svn-id: svn://localhost/ardour2/branches/3.0@11669 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour/io_processor.cc')
-rw-r--r--libs/ardour/io_processor.cc16
1 files changed, 8 insertions, 8 deletions
diff --git a/libs/ardour/io_processor.cc b/libs/ardour/io_processor.cc
index 8e7cba0ab1..12ab63483c 100644
--- a/libs/ardour/io_processor.cc
+++ b/libs/ardour/io_processor.cc
@@ -169,7 +169,7 @@ IOProcessor::set_state (const XMLNode& node, int version)
XMLNodeIterator niter;
const string instr = enum_2_string (IO::Input);
const string outstr = enum_2_string (IO::Output);
-
+
if (_own_input) {
for (niter = nlist.begin(); niter != nlist.end(); ++niter) {
const XMLProperty* prop;
@@ -184,21 +184,21 @@ IOProcessor::set_state (const XMLNode& node, int version)
}
}
}
-
+
if (io_node) {
_input->set_state(*io_node, version);
-
+
// legacy sessions: use IO name
if ((prop = node.property ("name")) == 0) {
set_name (_input->name());
}
-
+
} else {
/* no input, which is OK */
}
-
+
}
-
+
if (_own_output) {
for (niter = nlist.begin(); niter != nlist.end(); ++niter) {
if ((*niter)->name() == "IO") {
@@ -215,10 +215,10 @@ IOProcessor::set_state (const XMLNode& node, int version)
}
}
}
-
+
if (io_node) {
_output->set_state(*io_node, version);
-
+
// legacy sessions: use IO name
if ((prop = node.property ("name")) == 0) {
set_name (_output->name());