From e5926a53714604c8047e6bf21b73fa31880781c8 Mon Sep 17 00:00:00 2001 From: Bruno Herbelin Date: Wed, 23 Mar 2022 22:03:02 +0100 Subject: [PATCH] BugFix Load mixing groups for Session source and groups --- SessionCreator.cpp | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/SessionCreator.cpp b/SessionCreator.cpp index e733668..5301c37 100644 --- a/SessionCreator.cpp +++ b/SessionCreator.cpp @@ -135,11 +135,6 @@ void SessionCreator::load(const std::string& filename) XMLElement *sessionNode = xmlDoc_.FirstChildElement("Session"); SessionLoader::load( sessionNode ); - // create groups - std::list< SourceList > groups = getMixingGroups(); - for (auto group_it = groups.begin(); group_it != groups.end(); ++group_it) - session_->link( *group_it ); - // load snapshots loadSnapshots( xmlDoc_.FirstChildElement("Snapshots") ); @@ -489,8 +484,12 @@ void SessionLoader::load(XMLElement *sessionNode) } } - // loop over SourceLinks and resolve them - // NB: this could become the mechanism for clone sources too + // + // create groups + // + std::list< SourceList > groups = getMixingGroups(); + for (auto group_it = groups.begin(); group_it != groups.end(); ++group_it) + session_->link( *group_it ); } }