From 1af123465c2906646ebd956741f267231174d29b Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Wed, 6 Mar 2019 01:01:03 +0100 Subject: [PATCH] Tweak session load Listen positions are already correctly set when the route state is restored. The Route directly uses the Config. This skips duplicate calls to re-configure all processors on all Routes during RCConfiguration::map_parameters() on session-load, twice (pfl-position, listen-position) --- libs/ardour/session.cc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/libs/ardour/session.cc b/libs/ardour/session.cc index 52c4e580ba..ca89543834 100644 --- a/libs/ardour/session.cc +++ b/libs/ardour/session.cc @@ -6437,6 +6437,10 @@ Session::update_route_record_state () void Session::listen_position_changed () { + if (loading ()) { + /* skip duing session restore (already taken care of) */ + return; + } ProcessorChangeBlocker pcb (this); boost::shared_ptr r = routes.reader (); for (RouteList::iterator i = r->begin(); i != r->end(); ++i) {