aboutsummaryrefslogtreecommitdiffstats
path: root/lib/edi
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2021-05-25 15:16:20 +0200
committerMatthias P. Braendli <matthias.braendli@mpb.li>2021-05-25 15:16:20 +0200
commit7c5f2676c228b7ad92916bfc6866a1c782284503 (patch)
tree213124e415c05d5d171875c661fe52a96afa648f /lib/edi
parent6a9d4b12280f7d0411a44aaad9528d9cbb725b94 (diff)
downloaddabmod-7c5f2676c228b7ad92916bfc6866a1c782284503.tar.gz
dabmod-7c5f2676c228b7ad92916bfc6866a1c782284503.tar.bz2
dabmod-7c5f2676c228b7ad92916bfc6866a1c782284503.zip
Common ad7e11a: Add seq and pseq information to EDI/ETI decoder
Diffstat (limited to 'lib/edi')
-rw-r--r--lib/edi/ETIDecoder.cpp2
-rw-r--r--lib/edi/ETIDecoder.hpp1
2 files changed, 3 insertions, 0 deletions
diff --git a/lib/edi/ETIDecoder.cpp b/lib/edi/ETIDecoder.cpp
index a377692..0a4da54 100644
--- a/lib/edi/ETIDecoder.cpp
+++ b/lib/edi/ETIDecoder.cpp
@@ -233,6 +233,8 @@ bool ETIDecoder::decode_tagpacket(const std::vector<uint8_t>& value)
void ETIDecoder::packet_completed()
{
+ m_received_tagpacket.seq = m_dispatcher.get_seq_info();
+
ReceivedTagPacket tp;
swap(tp, m_received_tagpacket);
m_data_collector.assemble(move(tp));
diff --git a/lib/edi/ETIDecoder.hpp b/lib/edi/ETIDecoder.hpp
index e0865ce..3949a14 100644
--- a/lib/edi/ETIDecoder.hpp
+++ b/lib/edi/ETIDecoder.hpp
@@ -60,6 +60,7 @@ struct eti_stc_data {
struct ReceivedTagPacket {
std::vector<uint8_t> tagpacket;
frame_timestamp_t timestamp;
+ seq_info_t seq;
};