mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
for #340, #343, add wiki and use srs string function, support hls_entry_prefix(hls base url). 2.0.142
This commit is contained in:
parent
1a12ff0d94
commit
2241ba0e34
5 changed files with 12 additions and 20 deletions
|
@ -3152,17 +3152,7 @@ string SrsConfig::get_hls_entry_prefix(string vhost)
|
|||
return "";
|
||||
}
|
||||
|
||||
std::string prefix = conf->arg0();
|
||||
if (prefix.empty()) {
|
||||
return "";
|
||||
}
|
||||
|
||||
const char last = prefix[prefix.length() - 1];
|
||||
if (last != '/') {
|
||||
return prefix.append("/");
|
||||
}
|
||||
|
||||
return prefix;
|
||||
return conf->arg0();
|
||||
}
|
||||
|
||||
string SrsConfig::get_hls_path(string vhost)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue