aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2021-05-25 15:15:15 +0200
committerMatthias P. Braendli <matthias.braendli@mpb.li>2021-05-25 15:15:15 +0200
commitae6c0d5c568a57a66cdf0c40053891c517a49019 (patch)
tree07488282aa31cbd91a055188255e582562e0d673
parent5af379939ac47ad481314476ab0e079a6fa4262f (diff)
downloadODR-EDI2EDI-ae6c0d5c568a57a66cdf0c40053891c517a49019.tar.gz
ODR-EDI2EDI-ae6c0d5c568a57a66cdf0c40053891c517a49019.tar.bz2
ODR-EDI2EDI-ae6c0d5c568a57a66cdf0c40053891c517a49019.zip
Common ad7e11a: Add seq and pseq information to EDI/ETI decoder
-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;
};