diff options
author | Matthias P. Braendli <matthias.braendli@mpb.li> | 2020-11-02 13:32:51 +0100 |
---|---|---|
committer | Matthias P. Braendli <matthias.braendli@mpb.li> | 2020-11-02 13:32:51 +0100 |
commit | 3dcd1f0c81e1f7f0c4af779b3ce1eaa4f28b9c39 (patch) | |
tree | 0f698dcc54b1e95cb82132f1db5818d74537893e /src/input/Udp.cpp | |
parent | 13fa77bd40301af2219491b874aa8ed2860f2921 (diff) | |
download | dabmux-3dcd1f0c81e1f7f0c4af779b3ce1eaa4f28b9c39.tar.gz dabmux-3dcd1f0c81e1f7f0c4af779b3ce1eaa4f28b9c39.tar.bz2 dabmux-3dcd1f0c81e1f7f0c4af779b3ce1eaa4f28b9c39.zip |
UDP fix url parsing when rtp:// present
Diffstat (limited to 'src/input/Udp.cpp')
-rw-r--r-- | src/input/Udp.cpp | 4 |
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(":"); |