BugFix Load mixing groups for Session source and groups

This commit is contained in:
Bruno Herbelin
2022-03-23 22:03:02 +01:00
parent 86c4581a50
commit e5926a5371

View File

@@ -135,11 +135,6 @@ void SessionCreator::load(const std::string& filename)
XMLElement *sessionNode = xmlDoc_.FirstChildElement("Session"); XMLElement *sessionNode = xmlDoc_.FirstChildElement("Session");
SessionLoader::load( sessionNode ); 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 // load snapshots
loadSnapshots( xmlDoc_.FirstChildElement("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 );
} }
} }