Merge pull request #1525 from wendelong/dev

修正未初始化导致的播放异常问题
This commit is contained in:
Xiaofeng Wang 2022-03-29 16:05:54 +08:00 committed by GitHub
commit d5b8613858
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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