mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2024-11-22 19:00:01 +08:00
修复HLS播放导致程序异常的BUG
This commit is contained in:
parent
62543202a5
commit
97ea8090ad
@ -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) {
|
||||
return split(str, ",");
|
||||
});
|
||||
bool is_forbid_cache;
|
||||
bool is_forbid_cache = false;
|
||||
for (auto &suffix : forbidCacheSuffix) {
|
||||
if (suffix != "" && end_with(file_path, suffix)) {
|
||||
is_forbid_cache = true;
|
||||
|
Loading…
Reference in New Issue
Block a user