mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
Merge 15d6458b85
into 7416134262
This commit is contained in:
commit
2499a43349
1 changed files with 3 additions and 2 deletions
|
@ -56,6 +56,7 @@ void srs_discovery_tc_url(string tcUrl, string& schema, string& host, string& vh
|
||||||
// rtmp://ip/app/app2/stream?k=v
|
// rtmp://ip/app/app2/stream?k=v
|
||||||
// Where after last slash is stream.
|
// Where after last slash is stream.
|
||||||
fullUrl += stream.empty() ? "/" : (stream.at(0) == '/' ? stream : "/" + 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 += param.empty() ? "" : (param.at(0) == '?' ? param : "?" + param);
|
||||||
|
|
||||||
// First, we covert the FMLE URL to standard URL:
|
// First, we covert the FMLE URL to standard URL:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue