From 2f09f72b3d6ffeeafb11fc6096c34ffcbe393d5d Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Fri, 15 Mar 2019 15:54:07 +0100 Subject: [PATCH] Amend 883ee9c2, setup required invisible processor This fixes a potential silent master-bus when re-loading a session ("mains_out" may be skipped). --- libs/ardour/route.cc | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/libs/ardour/route.cc b/libs/ardour/route.cc index 50e0672052..beb5bbffc2 100644 --- a/libs/ardour/route.cc +++ b/libs/ardour/route.cc @@ -2969,6 +2969,15 @@ Route::set_processor_state (const XMLNode& node) */ _processors = new_order; + /* When a required/existing internal processor is not in the list, it needs to + * be added via configure_processors() -> setup_invisible_processors() + */ + if (_monitor_control) { + must_configure |= find (_processors.begin(), _processors.end(), _monitor_control) == _processors.end (); + } + if (_main_outs) { + must_configure |= find (_processors.begin(), _processors.end(), _main_outs) == _processors.end (); + } if (_delayline) { must_configure |= find (_processors.begin(), _processors.end(), _delayline) == _processors.end (); }