diff options
| author | Matthias P. Braendli <matthias.braendli@mpb.li> | 2025-10-06 17:35:24 +0200 | 
|---|---|---|
| committer | Matthias P. Braendli <matthias.braendli@mpb.li> | 2025-10-06 17:35:24 +0200 | 
| commit | 56fa3ca3db83627dbde9bd3a79da897c5a1cccb1 (patch) | |
| tree | 04e6c361b99962683500c9db12a568309c3d3b6f /src/ConfigParser.cpp | |
| parent | b6b840f6072e950f2ded719ae51badfba7566fa8 (diff) | |
| download | dabmux-56fa3ca3db83627dbde9bd3a79da897c5a1cccb1.tar.gz dabmux-56fa3ca3db83627dbde9bd3a79da897c5a1cccb1.tar.bz2 dabmux-56fa3ca3db83627dbde9bd3a79da897c5a1cccb1.zip | |
Add services other ensembles to linking hot-reloadnext
Diffstat (limited to 'src/ConfigParser.cpp')
| -rw-r--r-- | src/ConfigParser.cpp | 15 | 
1 files changed, 9 insertions, 6 deletions
| diff --git a/src/ConfigParser.cpp b/src/ConfigParser.cpp index efc010f..785a0da 100644 --- a/src/ConfigParser.cpp +++ b/src/ConfigParser.cpp @@ -329,10 +329,10 @@ void parse_freq_info(      } // if FI present  } -static void parse_other_service_linking(ptree& pt, -        std::shared_ptr<dabEnsemble> ensemble) +void parse_other_service_linking( +        const boost::optional<boost::property_tree::ptree&> pt_other_services, +        std::vector<ServiceOtherEnsembleInfo>& service_other_ensemble)  { -    const auto pt_other_services = pt.get_child_optional("other-services");      if (pt_other_services) {          for (const auto& it_service : *pt_other_services) {              const string srv_uid = it_service.first; @@ -362,7 +362,7 @@ static void parse_other_service_linking(ptree& pt,                          }                      } -                    ensemble->service_other_ensemble.push_back(std::move(info)); +                    service_other_ensemble.push_back(std::move(info));                  }              }              catch (const std::exception &e) { @@ -917,9 +917,12 @@ void parse_ptree(      std::vector<FrequencyInformation> frequency_information;      parse_freq_info(pt_frequency_information, frequency_information); -    ensemble->set_linking_config(linkagesets, frequency_information); +    const auto pt_other_services = pt.get_child_optional("other-services"); +    std::vector<ServiceOtherEnsembleInfo> services_other_ensemble; +    parse_other_service_linking(pt_other_services, services_other_ensemble); + +    ensemble->set_linking_config(linkagesets, frequency_information, services_other_ensemble); -    parse_other_service_linking(pt, ensemble);  }  static Inputs::dab_input_zmq_config_t setup_zmq_input( | 
