13
0

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)
This commit is contained in:
Robin Gareus 2019-03-06 01:01:03 +01:00
parent 883ee9c2a0
commit 1af123465c
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04

View File

@ -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<RouteList> r = routes.reader ();
for (RouteList::iterator i = r->begin(); i != r->end(); ++i) {