From bf9ed3f470d7eed114ff1ae572403eb133fb16c0 Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Tue, 7 Feb 2023 18:28:22 +0100 Subject: [PATCH] Fix loading Ardour 2 sessions with external redirects --- libs/ardour/route.cc | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/libs/ardour/route.cc b/libs/ardour/route.cc index 5e14f6dd54..748431bbfa 100644 --- a/libs/ardour/route.cc +++ b/libs/ardour/route.cc @@ -957,14 +957,11 @@ Route::add_processor_from_xml_2X (const XMLNode& node, int version) processor.reset (new UnknownProcessor (_session, node, this)); } else { processor.reset (new PluginInsert (_session, time_domain())); - processor->set_owner (this); } } else { - processor.reset (new PortInsert (_session, _pannable, _mute_master)); } - } } else if (node.name() == "Send") { @@ -978,6 +975,8 @@ Route::add_processor_from_xml_2X (const XMLNode& node, int version) return false; } + processor->set_owner (this); + if (processor->set_state (node, version)) { return false; }