summaryrefslogtreecommitdiffstats
path: root/src/Outputs.cpp
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2019-07-03 12:40:41 +0200
committerMatthias P. Braendli <matthias.braendli@mpb.li>2019-07-03 12:40:41 +0200
commit7ab73d85a9709d9971298ce4c6125f9f7ce7617e (patch)
tree5470e6bd74873c038a595afb7891b16e425188e5 /src/Outputs.cpp
parent70519875ee76bd8ab6ae49422ebc36598da28ec3 (diff)
downloadODR-AudioEnc-7ab73d85a9709d9971298ce4c6125f9f7ce7617e.tar.gz
ODR-AudioEnc-7ab73d85a9709d9971298ce4c6125f9f7ce7617e.tar.bz2
ODR-AudioEnc-7ab73d85a9709d9971298ce4c6125f9f7ce7617e.zip
EDI: make tagDSTI persistent so that DFLC counter works
Diffstat (limited to 'src/Outputs.cpp')
-rw-r--r--src/Outputs.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/Outputs.cpp b/src/Outputs.cpp
index be5b841..6249e2d 100644
--- a/src/Outputs.cpp
+++ b/src/Outputs.cpp
@@ -161,6 +161,8 @@ void EDI::add_tcp_destination(const std::string& host, int port)
}
dest->dest_port = port;
m_edi_conf.destinations.push_back(dest);
+
+ m_edi_conf.dump = true;
}
bool EDI::enabled() const
@@ -177,11 +179,9 @@ bool EDI::write_frame(const uint8_t *buf, size_t len)
edi::TagStarPTR edi_tagStarPtr;
edi_tagStarPtr.protocol = "DSTI";
- edi::TagDSTI edi_tagDSTI;
-
- edi_tagDSTI.stihf = false;
- edi_tagDSTI.atstf = false;
- edi_tagDSTI.rfadf = false;
+ m_edi_tagDSTI.stihf = false;
+ m_edi_tagDSTI.atstf = false;
+ m_edi_tagDSTI.rfadf = false;
// DFCT is handled inside the TagDSTI
edi::TagSSm edi_tagPayload;
@@ -194,7 +194,7 @@ bool EDI::write_frame(const uint8_t *buf, size_t len)
// put tags *ptr, DETI and all subchannels into one TagPacket
edi_tagpacket.tag_items.push_back(&edi_tagStarPtr);
- edi_tagpacket.tag_items.push_back(&edi_tagDSTI);
+ edi_tagpacket.tag_items.push_back(&m_edi_tagDSTI);
edi_tagpacket.tag_items.push_back(&edi_tagPayload);
m_edi_sender->write(edi_tagpacket);