mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2026-06-16 13:05:59 +08:00
防止析构时抛异常导致的崩溃
This commit is contained in:
@@ -34,8 +34,12 @@ MP4Recorder::MP4Recorder(const string &path, const string &vhost, const string &
|
||||
}
|
||||
|
||||
MP4Recorder::~MP4Recorder() {
|
||||
flush();
|
||||
closeFile();
|
||||
try {
|
||||
flush();
|
||||
closeFile();
|
||||
} catch (std::exception &ex) {
|
||||
WarnL << ex.what();
|
||||
}
|
||||
}
|
||||
|
||||
void MP4Recorder::createFile() {
|
||||
|
||||
Reference in New Issue
Block a user