From 56fa3ca3db83627dbde9bd3a79da897c5a1cccb1 Mon Sep 17 00:00:00 2001 From: "Matthias P. Braendli" Date: Mon, 6 Oct 2025 17:35:24 +0200 Subject: Add services other ensembles to linking hot-reload --- src/DabMultiplexer.cpp | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) (limited to 'src/DabMultiplexer.cpp') diff --git a/src/DabMultiplexer.cpp b/src/DabMultiplexer.cpp index d107b9a..45d9a66 100644 --- a/src/DabMultiplexer.cpp +++ b/src/DabMultiplexer.cpp @@ -504,8 +504,21 @@ void DabMultiplexer::reload_linking() etiLog.level(warn) << "Failed to validate new frequency info: " << e.what(); } - if (linkage_sets_valid and freq_info_valid) { - ensemble->set_linking_config(linkagesets, frequency_information); + bool services_oe_valid = false; + std::vector services_other_ensemble; + + try { + const auto pt_other_services = new_conf.pt.get_child_optional("other-services"); + parse_other_service_linking(pt_other_services, services_other_ensemble); + services_oe_valid = true; + } + catch (const std::runtime_error& e) + { + etiLog.level(warn) << "Failed to validate new services in other onsembles: " << e.what(); + } + + if (linkage_sets_valid and freq_info_valid and services_oe_valid) { + ensemble->set_linking_config(linkagesets, frequency_information, services_other_ensemble); etiLog.level(info) << "Loaded new linkage sets and frequency info."; } } -- cgit v1.2.3