From 0b7bc4a405ea4d6f24fade9420e9919420c64d8e Mon Sep 17 00:00:00 2001 From: "Matthias P. Braendli" Date: Sun, 14 Sep 2014 00:05:51 +0200 Subject: Add little check for zeromq url syntax --- src/DabMod.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/DabMod.cpp b/src/DabMod.cpp index 14c7c4b..7ee65dc 100644 --- a/src/DabMod.cpp +++ b/src/DabMod.cpp @@ -667,7 +667,13 @@ int main(int argc, char* argv[]) ret = -1; goto END_MAIN; #else - inputZeroMQReader.Open(inputName.substr(4)); + // The URL might start with zmq+tcp:// + if (inputName.substr(0, 4) == "zmq+") { + inputZeroMQReader.Open(inputName.substr(4)); + } + else { + inputZeroMQReader.Open(inputName); + } inputReader = &inputZeroMQReader; #endif } -- cgit v1.2.3