From 3dcd1f0c81e1f7f0c4af779b3ce1eaa4f28b9c39 Mon Sep 17 00:00:00 2001 From: "Matthias P. Braendli" Date: Mon, 2 Nov 2020 13:32:51 +0100 Subject: UDP fix url parsing when rtp:// present --- src/input/Udp.cpp | 4 ++-- 1 file 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(":"); -- cgit v1.2.3