From 0f791cbf06f33c7408660bc062b4e8f074f414b4 Mon Sep 17 00:00:00 2001 From: zx <2200013083@stu.pku.edu.cn> Date: Wed, 9 Oct 2024 21:33:35 +0800 Subject: [PATCH] Remove line 59 in trunk/src/protocol/srs_protocol_utility.cpp, for it cause the repeat of the param --- trunk/src/protocol/srs_protocol_utility.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/trunk/src/protocol/srs_protocol_utility.cpp b/trunk/src/protocol/srs_protocol_utility.cpp index 620ebfea4..07f63175f 100644 --- a/trunk/src/protocol/srs_protocol_utility.cpp +++ b/trunk/src/protocol/srs_protocol_utility.cpp @@ -56,7 +56,6 @@ void srs_discovery_tc_url(string tcUrl, string& schema, string& host, string& vh // rtmp://ip/app/app2/stream?k=v // Where after last slash is stream. fullUrl += stream.empty() ? "/" : (stream.at(0) == '/' ? stream : "/" + stream); - fullUrl += param.empty() ? "" : (param.at(0) == '?' ? param : "?" + param); // First, we covert the FMLE URL to standard URL: // rtmp://ip/app/app2?k=v/stream , or: