From 5b90aab4d8837316fc5835083999747c56f24d58 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Fri, 3 Sep 2010 15:34:09 +0000 Subject: 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 --- libs/ardour/io_processor.cc | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'libs/ardour/io_processor.cc') 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) { -- cgit v1.2.3