Skip to content

Commit

Permalink
for tcurl is already containing stream and param, don't need to add t…
Browse files Browse the repository at this point in the history
…o it again
  • Loading branch information
zx committed Oct 10, 2024
1 parent 0f791cb commit 036d3c0
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions trunk/src/protocol/srs_protocol_utility.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -52,11 +52,6 @@ void srs_discovery_tc_url(string tcUrl, string& schema, string& host, string& vh
// rtmp://ip/app?vhost=VHOST/stream
string fullUrl = srs_string_replace(tcUrl, "...vhost...", "?vhost=");

// Standard URL is:
// rtmp://ip/app/app2/stream?k=v
// Where after last slash is stream.
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:
// rtmp://ip/app/app2#k=v/stream
Expand Down

0 comments on commit 036d3c0

Please sign in to comment.