修复hls注册抛异常可能导致的bug
This commit is contained in:
parent
44f4e9acd4
commit
6078ca3e81
|
|
@ -40,7 +40,12 @@ HlsMakerImp::HlsMakerImp(const string &m3u8_file,
|
|||
}
|
||||
|
||||
HlsMakerImp::~HlsMakerImp() {
|
||||
clearCache(false, true);
|
||||
try {
|
||||
// 可能hls注册时导致抛异常
|
||||
clearCache(false, true);
|
||||
} catch (std::exception &ex) {
|
||||
WarnL << ex.what();
|
||||
}
|
||||
}
|
||||
|
||||
void HlsMakerImp::clearCache() {
|
||||
|
|
|
|||
Loading…
Reference in New Issue