From ea5594186bafa5489d6086a26d71b8f3d1ccf9cd Mon Sep 17 00:00:00 2001 From: "Matthias P. Braendli" Date: Fri, 13 Jan 2017 11:53:15 +0100 Subject: Add threaded UDP input for EDI --- src/DabMod.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'src/DabMod.cpp') diff --git a/src/DabMod.cpp b/src/DabMod.cpp index 8065a5a..ac7842f 100644 --- a/src/DabMod.cpp +++ b/src/DabMod.cpp @@ -627,6 +627,9 @@ int launch_modulator(int argc, char* argv[]) else if (inputName.substr(0, 6) == "tcp://") { inputTransport = "tcp"; } + else if (inputName.substr(0, 6) == "udp://") { + inputTransport = "edi"; + } } else { inputName = "/dev/stdin"; @@ -784,7 +787,11 @@ int launch_modulator(int argc, char* argv[]) } set_thread_name("modulator"); - if (ediUdpInput.isEnabled()) { + if (inputTransport == "edi") { + if (not ediUdpInput.isEnabled()) { + etiLog.level(error) << "inputTransport is edi, but ediUdpInput is not enabled"; + return -1; + } Flowgraph flowgraph; auto modulator = make_shared( -- cgit v1.2.3