Skip to content

Commit

Permalink
check for param should not cover the append of stream
Browse files Browse the repository at this point in the history
  • Loading branch information
zx committed Oct 10, 2024
1 parent 24505fb commit 15d6458
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions trunk/src/protocol/srs_protocol_utility.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -55,11 +55,9 @@ void srs_discovery_tc_url(string tcUrl, string& schema, string& host, string& vh
// Standard URL is:
// rtmp://ip/app/app2/stream?k=v
// Where after last slash is stream.
fullUrl += stream.empty() ? "/" : (stream.at(0) == '/' ? stream : "/" + stream);
if (fullUrl.find_first_of("?#") == string::npos)
{
fullUrl += param.empty() ? "" : (param.at(0) == '?' ? param : "?" + param);
fullUrl += stream.empty() ? "/" : (stream.at(0) == '/' ? stream : "/" + stream);
}

// First, we covert the FMLE URL to standard URL:
// rtmp://ip/app/app2?k=v/stream , or:
Expand Down

0 comments on commit 15d6458

Please sign in to comment.