summaryrefslogtreecommitdiffstats
path: root/src/input
diff options
context:
space:
mode:
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(":");