summaryrefslogtreecommitdiffstats
path: root/src/DabMod.cpp
diff options
context:
space:
mode:
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") {