aboutsummaryrefslogtreecommitdiffstats
path: root/src/input
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2024-08-20 15:01:25 +0200
committerMatthias P. Braendli <matthias.braendli@mpb.li>2024-08-20 15:01:25 +0200
commit9b18142f07d9d87bd9eced148a245b1d37bda29a (patch)
treef58fac90e103b6a9406a1347cd5e13b865f6de0a /src/input
parent3986a7b40c0043ec33c2c2b7cf5c615c65599997 (diff)
downloaddabmux-9b18142f07d9d87bd9eced148a245b1d37bda29a.tar.gz
dabmux-9b18142f07d9d87bd9eced148a245b1d37bda29a.tar.bz2
dabmux-9b18142f07d9d87bd9eced148a245b1d37bda29a.zip
Update common: improve multicast input and incomplete timestamps
Diffstat (limited to 'src/input')
-rw-r--r--src/input/Edi.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/input/Edi.cpp b/src/input/Edi.cpp
index fc380d8..141641f 100644
--- a/src/input/Edi.cpp
+++ b/src/input/Edi.cpp
@@ -254,7 +254,7 @@ size_t Edi::readFrame(uint8_t *buffer, size_t size, std::time_t seconds, int utc
while (not m_pending_sti_frame.frame.empty()) {
if (m_pending_sti_frame.frame.size() == size) {
- if (m_pending_sti_frame.timestamp.valid()) {
+ if (m_pending_sti_frame.timestamp.is_valid()) {
auto ts_req = EdiDecoder::frame_timestamp_t::from_unix_epoch(seconds, utco, tsta);
ts_req += m_tist_delay;
const double offset = ts_req.diff_s(m_pending_sti_frame.timestamp);
@@ -324,7 +324,7 @@ size_t Edi::readFrame(uint8_t *buffer, size_t size, std::time_t seconds, int utc
m_is_prebuffering = true;
return 0;
}
- else if (not m_pending_sti_frame.timestamp.valid()) {
+ else if (not m_pending_sti_frame.timestamp.is_valid()) {
etiLog.level(warn) << "EDI input " << m_name <<
" invalid timestamp, ignoring";
memset(buffer, 0, size);