From f172d049863a38f33e8b15a3e47d4904b2c81323 Mon Sep 17 00:00:00 2001 From: "Matthias P. Braendli" Date: Sun, 15 Dec 2013 15:56:32 +0100 Subject: Add ZeroMQ dabplus input For use in combination with fdk-aac-dabplus-zmq --- src/ParserConfigfile.cpp | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) (limited to 'src/ParserConfigfile.cpp') diff --git a/src/ParserConfigfile.cpp b/src/ParserConfigfile.cpp index 860b9b1..dcf6733 100644 --- a/src/ParserConfigfile.cpp +++ b/src/ParserConfigfile.cpp @@ -61,6 +61,7 @@ #include "dabInputRawFifo.h" #include "dabInputDmbFile.h" #include "dabInputDmbUdp.h" +#include "dabInputZmq.h" #include "DabMux.h" @@ -475,9 +476,24 @@ void setup_subchannel_from_ptree(dabSubchannel* subchan, } else if (strcmp(subchan->inputProto, "file") == 0) { subchan->operations = dabInputDabplusFileOperations; #endif // defined(HAVE_INPUT_FILE) +#if defined(HAVE_INPUT_ZEROMQ) + } + else if (strcmp(subchan->inputProto, "tcp") == 0) { + subchan->operations = dabInputZmqOperations; + } + else if (strcmp(subchan->inputProto, "epmg") == 0) { + etiLog.printHeader(TcpLog::WARNING, + "Using untested epmg:// zeromq input\n"); + subchan->operations = dabInputZmqOperations; + } + else if (strcmp(subchan->inputProto, "ipc") == 0) { + etiLog.printHeader(TcpLog::WARNING, + "Using untested ipc:// zeromq input\n"); + subchan->operations = dabInputZmqOperations; +#endif // defined(HAVE_INPUT_ZEROMQ) } else { stringstream ss; - ss << "Subchannel with uid " << subchanuid << + ss << "Subchannel with uid " << subchanuid << ": Invalid protocol for DAB+ input (" << subchan->inputProto << ")" << endl; throw runtime_error(ss.str()); -- cgit v1.2.3