aboutsummaryrefslogtreecommitdiffstats
path: root/src/input
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2020-11-02 13:32:51 +0100
committerMatthias P. Braendli <matthias.braendli@mpb.li>2020-11-02 13:32:51 +0100
commit3dcd1f0c81e1f7f0c4af779b3ce1eaa4f28b9c39 (patch)
tree0f698dcc54b1e95cb82132f1db5818d74537893e /src/input
parent13fa77bd40301af2219491b874aa8ed2860f2921 (diff)
downloaddabmux-3dcd1f0c81e1f7f0c4af779b3ce1eaa4f28b9c39.tar.gz
dabmux-3dcd1f0c81e1f7f0c4af779b3ce1eaa4f28b9c39.tar.bz2
dabmux-3dcd1f0c81e1f7f0c4af779b3ce1eaa4f28b9c39.zip
UDP fix url parsing when rtp:// present
Diffstat (limited to 'src/input')
-rw-r--r--src/input/Udp.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/input/Udp.cpp b/src/input/Udp.cpp
index a37ee21..e871575 100644
--- a/src/input/Udp.cpp
+++ b/src/input/Udp.cpp
@@ -155,8 +155,8 @@ static uint16_t unpack2(const uint8_t *buf)
void Sti_d_Rtp::open(const std::string& name)
{
// Skip the rtp:// part if it is present
- const string endpoint = (name.substr(0, 10) == "rtp://") ?
- name.substr(10) : name;
+ const string endpoint = (name.substr(0, 6) == "rtp://") ?
+ name.substr(6) : name;
// The endpoint should be address:port
const auto colon_pos = endpoint.find_first_of(":");