diff options
author | Matthias P. Braendli <matthias.braendli@mpb.li> | 2014-09-14 00:05:51 +0200 |
---|---|---|
committer | Matthias P. Braendli <matthias.braendli@mpb.li> | 2014-09-14 00:05:51 +0200 |
commit | 0b7bc4a405ea4d6f24fade9420e9919420c64d8e (patch) | |
tree | f3c8247c95294e68ba31f6d36456725cf8dba349 /src/DabMod.cpp | |
parent | d567ceb9306f8250a28e0b68cc4ca9d196deef75 (diff) | |
download | dabmod-0b7bc4a405ea4d6f24fade9420e9919420c64d8e.tar.gz dabmod-0b7bc4a405ea4d6f24fade9420e9919420c64d8e.tar.bz2 dabmod-0b7bc4a405ea4d6f24fade9420e9919420c64d8e.zip |
Add little check for zeromq url syntax
Diffstat (limited to 'src/DabMod.cpp')
-rw-r--r-- | src/DabMod.cpp | 8 |
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 } |