From afb8d8d8bcad7294c114c9a72123964a171cb01a Mon Sep 17 00:00:00 2001 From: "Matthias P. Braendli" Date: Fri, 6 Jan 2017 17:39:13 +0100 Subject: Add edi_max_delay option to config file --- src/DabMod.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src') 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") { -- cgit v1.2.3