diff options
Diffstat (limited to 'src/DabMultiplexer.cpp')
-rw-r--r-- | src/DabMultiplexer.cpp | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/src/DabMultiplexer.cpp b/src/DabMultiplexer.cpp index 3421338..58a1c8f 100644 --- a/src/DabMultiplexer.cpp +++ b/src/DabMultiplexer.cpp @@ -658,9 +658,19 @@ void DabMultiplexer::mux_frame(std::vector<std::shared_ptr<DabOutput> >& outputs edi_tagDETI.set_seconds(edi_time); // In case get_offset fails, we still want to update the EDI seconds - edi_tagDETI.set_tai_utc_offset(m_clock_tai.get_offset()); - } + const auto utco = m_clock_tai.get_offset(); + edi_tagDETI.set_tai_utc_offset(utco); + + for (auto output : outputs) { + shared_ptr<OutputMetadata> md_utco = + make_shared<OutputMetadataUTCO>(utco); + output->setMetadata(md_utco); + shared_ptr<OutputMetadata> md_edi_time = + make_shared<OutputMetadataEDITime>(edi_tagDETI.seconds); + output->setMetadata(md_edi_time); + } + } } catch (std::runtime_error& e) { etiLog.level(error) << "Could not get UTC-TAI offset for EDI timestamp"; @@ -692,8 +702,6 @@ void DabMultiplexer::mux_frame(std::vector<std::shared_ptr<DabOutput> >& outputs edi_time += chrono::seconds(1); } - - /********************************************************************** *********** Section FRPD ***************************************** **********************************************************************/ |