summaryrefslogtreecommitdiff
path: root/libs/ardour/io_processor.cc
diff options
context:
space:
mode:
authorCarl Hetherington <carl@carlh.net>2010-09-03 15:34:09 +0000
committerCarl Hetherington <carl@carlh.net>2010-09-03 15:34:09 +0000
commit5b90aab4d8837316fc5835083999747c56f24d58 (patch)
treed631d6591ade721f57f32c567a1f1529af8114fe /libs/ardour/io_processor.cc
parent8778724701ac14ebb02fe46dd3dc71eef38b636a (diff)
Fix restore of sends from session files for both 2.X and 3.0 sessions. Fixes #3433.
git-svn-id: svn://localhost/ardour2/branches/3.0@7739 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour/io_processor.cc')
-rw-r--r--libs/ardour/io_processor.cc14
1 files changed, 14 insertions, 0 deletions
diff --git a/libs/ardour/io_processor.cc b/libs/ardour/io_processor.cc
index d1b7e9c232..877e0422fa 100644
--- a/libs/ardour/io_processor.cc
+++ b/libs/ardour/io_processor.cc
@@ -146,6 +146,10 @@ IOProcessor::state (bool full_state)
int
IOProcessor::set_state (const XMLNode& node, int version)
{
+ if (version < 3000) {
+ return set_state_2X (node, version);
+ }
+
const XMLProperty *prop;
const XMLNode *io_node = 0;
@@ -227,6 +231,16 @@ IOProcessor::set_state (const XMLNode& node, int version)
return 0;
}
+int
+IOProcessor::set_state_2X (const XMLNode& node, int version)
+{
+ _own_input = _own_output = true;
+
+ Processor::set_state_2X (node, version);
+
+ return 0;
+}
+
void
IOProcessor::silence (nframes_t nframes)
{