summaryrefslogtreecommitdiffstats
path: root/src/DabMultiplexer.cpp
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2017-01-18 21:25:15 +0100
committerMatthias P. Braendli <matthias.braendli@mpb.li>2017-01-18 21:25:15 +0100
commit19e8424cd38fde66961915d51bdffbf6611b7414 (patch)
treed66c9492c55ac66f62b16cb4a1bc62abd360fa01 /src/DabMultiplexer.cpp
parent8f11de753e5bc77673263751f27db6751ee2361c (diff)
downloaddabmux-19e8424cd38fde66961915d51bdffbf6611b7414.tar.gz
dabmux-19e8424cd38fde66961915d51bdffbf6611b7414.tar.bz2
dabmux-19e8424cd38fde66961915d51bdffbf6611b7414.zip
Fix important EDI Timestamp issues
First, use more servers, not only those from USNO that currenty show problems. Add a server from IETF and the github repository from the tz project that mirrors that file. Second, fix issues about parsing the bulletin and error handling. Third, run the bulletin update asynchronously once the mux runs, to avoid blocking it.
Diffstat (limited to 'src/DabMultiplexer.cpp')
-rw-r--r--src/DabMultiplexer.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/DabMultiplexer.cpp b/src/DabMultiplexer.cpp
index ff35c2f..51a67e7 100644
--- a/src/DabMultiplexer.cpp
+++ b/src/DabMultiplexer.cpp
@@ -640,8 +640,10 @@ void DabMultiplexer::mux_frame(std::vector<std::shared_ptr<DabOutput> >& outputs
bool tist_enabled = m_pt.get("general.tist", false);
if (tist_enabled and edi_conf.enabled()) {
- edi_tagDETI.set_tai_utc_offset(m_clock_tai.get_offset());
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());
}
}