修复hls注册抛异常可能导致的bug

This commit is contained in:
ziyue 2023-02-02 11:21:49 +08:00
parent 44f4e9acd4
commit 6078ca3e81

View File

@ -40,7 +40,12 @@ HlsMakerImp::HlsMakerImp(const string &m3u8_file,
}
HlsMakerImp::~HlsMakerImp() {
try {
// 可能hls注册时导致抛异常
clearCache(false, true);
} catch (std::exception &ex) {
WarnL << ex.what();
}
}
void HlsMakerImp::clearCache() {