aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2020-11-16 08:55:05 +0100
committerMatthias P. Braendli <matthias.braendli@mpb.li>2020-11-16 08:55:05 +0100
commit7b048c63139f03d458458e91635ffcfae063c374 (patch)
treefbdb731b3786665addc51f17ddfdfb78015daba0 /src
parenteb523e91f692ae0ef9d069e11a2a177a02431c28 (diff)
downloaddabmux-7b048c63139f03d458458e91635ffcfae063c374.tar.gz
dabmux-7b048c63139f03d458458e91635ffcfae063c374.tar.bz2
dabmux-7b048c63139f03d458458e91635ffcfae063c374.zip
Add EDI transport addressing to config
Diffstat (limited to 'src')
-rw-r--r--src/DabMux.cpp13
1 files changed, 7 insertions, 6 deletions
diff --git a/src/DabMux.cpp b/src/DabMux.cpp
index c4fb692..4ae607c 100644
--- a/src/DabMux.cpp
+++ b/src/DabMux.cpp
@@ -354,14 +354,15 @@ int main(int argc, char *argv[])
edi_conf.dest_port = pt_edi.get<unsigned int>("port");
}
- edi_conf.dump = pt_edi.get<bool>("dump", false);
- edi_conf.enable_pft = pt_edi.get<bool>("enable_pft", false);
- edi_conf.verbose = pt_edi.get<bool>("verbose", false);
+ edi_conf.dump = pt_edi.get<bool>("dump", false);
+ edi_conf.enable_pft = pt_edi.get<bool>("enable_pft", false);
+ edi_conf.verbose = pt_edi.get<bool>("verbose", false);
+ edi_conf.enable_transport_header = pt_edi.get<bool>("enable_transport_addressing", true);
- edi_conf.fec = pt_edi.get<unsigned int>("fec", 3);
- edi_conf.chunk_len = pt_edi.get<unsigned int>("chunk_len", 207);
+ edi_conf.fec = pt_edi.get<unsigned int>("fec", 3);
+ edi_conf.chunk_len = pt_edi.get<unsigned int>("chunk_len", 207);
- double interleave_ms = pt_edi.get<double>("interleave", 0);
+ double interleave_ms = pt_edi.get<double>("interleave", 0);
if (interleave_ms != 0.0) {
if (interleave_ms < 0) {
throw runtime_error("EDI output: negative interleave value is invalid.");