防止析构函数抛异常导致崩溃问题 (#2546)

This commit is contained in:
夏楚
2023-06-11 22:07:15 +08:00
committed by GitHub
parent fe37005526
commit 5ca4ed53b2
9 changed files with 33 additions and 14 deletions

View File

@@ -22,9 +22,7 @@ HlsMaker::HlsMaker(float seg_duration, uint32_t seg_number, bool seg_keep) {
_seg_keep = seg_keep;
}
HlsMaker::~HlsMaker() {
}
HlsMaker::~HlsMaker() = default;
void HlsMaker::makeIndexFile(bool eof) {
char file_content[1024];