summaryrefslogtreecommitdiffstats
path: root/src/DabMod.cpp
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2017-01-06 17:39:13 +0100
committerMatthias P. Braendli <matthias.braendli@mpb.li>2017-01-06 17:39:13 +0100
commitafb8d8d8bcad7294c114c9a72123964a171cb01a (patch)
tree6e5374c2132793e00acbd8d2826e892e5f05073b /src/DabMod.cpp
parentf81473031810253f5b78fd02c2df04a5a204099b (diff)
downloaddabmod-afb8d8d8bcad7294c114c9a72123964a171cb01a.tar.gz
dabmod-afb8d8d8bcad7294c114c9a72123964a171cb01a.tar.bz2
dabmod-afb8d8d8bcad7294c114c9a72123964a171cb01a.zip
Add edi_max_delay option to config file
Diffstat (limited to 'src/DabMod.cpp')
-rw-r--r--src/DabMod.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/DabMod.cpp b/src/DabMod.cpp
index 987b579..a5e3163 100644
--- a/src/DabMod.cpp
+++ b/src/DabMod.cpp
@@ -132,6 +132,7 @@ int launch_modulator(int argc, char* argv[])
std::string inputName = "";
std::string inputTransport = "file";
unsigned inputMaxFramesQueued = ZMQ_INPUT_MAX_FRAME_QUEUE;
+ int edi_max_delay = 0;
std::string outputName;
int useZeroMQOutput = 0;
@@ -387,6 +388,8 @@ int launch_modulator(int argc, char* argv[])
inputMaxFramesQueued = pt.get("input.max_frames_queued",
ZMQ_INPUT_MAX_FRAME_QUEUE);
+ edi_max_delay = pt.get("input.edi_max_delay", 0);
+
inputName = pt.get("input.source", "/dev/stdin");
// log parameters:
@@ -695,6 +698,9 @@ int launch_modulator(int argc, char* argv[])
EdiReader ediReader;
EdiDecoder::ETIDecoder ediInput(ediReader);
+ if (edi_max_delay > 0) {
+ ediInput.setMaxDelay(edi_max_delay);
+ }
EdiUdpInput ediUdpInput(ediInput);
if (inputTransport == "file") {