13
0

Fix repeat of stem-export of stereo channels

Restoring the export profile state previously added a new
Export Processor for each state for each channel to the same
route.

This fixes silent stem export channels after an initial
correct stem export (which saves ExportChannelConfiguration)
This commit is contained in:
Robin Gareus 2024-06-03 22:24:38 +02:00
parent 84445efe92
commit 40ef5f3b15
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04

View File

@ -385,6 +385,11 @@ RouteExportChannel::create_from_route (std::list<ExportChannelPtr>& result, std:
void void
RouteExportChannel::create_from_state (std::list<ExportChannelPtr>& result, Session& s, XMLNode* node) RouteExportChannel::create_from_state (std::list<ExportChannelPtr>& result, Session& s, XMLNode* node)
{ {
uint32_t chn;
if (node->get_property ("number", chn) && chn > 1) {
/* create_from_route adds ExportChannel for all channels of a given Route */
return;
}
XMLNode* xml_route = node->child ("Route"); XMLNode* xml_route = node->child ("Route");
if (!xml_route) { if (!xml_route) {
return; return;