summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2014-09-14 00:05:51 +0200
committerMatthias P. Braendli <matthias.braendli@mpb.li>2014-09-14 00:05:51 +0200
commit0b7bc4a405ea4d6f24fade9420e9919420c64d8e (patch)
treef3c8247c95294e68ba31f6d36456725cf8dba349 /src
parentd567ceb9306f8250a28e0b68cc4ca9d196deef75 (diff)
downloaddabmod-0b7bc4a405ea4d6f24fade9420e9919420c64d8e.tar.gz
dabmod-0b7bc4a405ea4d6f24fade9420e9919420c64d8e.tar.bz2
dabmod-0b7bc4a405ea4d6f24fade9420e9919420c64d8e.zip
Add little check for zeromq url syntax
Diffstat (limited to 'src')
-rw-r--r--src/DabMod.cpp8
1 files changed, 7 insertions, 1 deletions
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
}