Commit 97ea8090 by wendelong

修复HLS播放导致程序异常的BUG

parent 62543202
...@@ -399,7 +399,7 @@ static void accessFile(TcpSession &sender, const Parser &parser, const MediaInfo ...@@ -399,7 +399,7 @@ static void accessFile(TcpSession &sender, const Parser &parser, const MediaInfo
GET_CONFIG_FUNC(vector<string>, forbidCacheSuffix, Http::kForbidCacheSuffix, [](const string &str) { GET_CONFIG_FUNC(vector<string>, forbidCacheSuffix, Http::kForbidCacheSuffix, [](const string &str) {
return split(str, ","); return split(str, ",");
}); });
bool is_forbid_cache; bool is_forbid_cache = false;
for (auto &suffix : forbidCacheSuffix) { for (auto &suffix : forbidCacheSuffix) {
if (suffix != "" && end_with(file_path, suffix)) { if (suffix != "" && end_with(file_path, suffix)) {
is_forbid_cache = true; is_forbid_cache = true;
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论