1
0
Fork 0
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:
winlin 2015-03-17 07:57:58 +08:00
parent 1a12ff0d94
commit 2241ba0e34
5 changed files with 12 additions and 20 deletions

View file

@ -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)