mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2026-06-14 03:55:58 +08:00
重命名前确保关闭mp4文件:#416
This commit is contained in:
@@ -93,6 +93,7 @@ void MP4File::openFile(const char *file,const char *mode) {
|
||||
|
||||
//创建智能指针
|
||||
_file.reset(fp,[file_buf](FILE *fp) {
|
||||
fflush(fp);
|
||||
fclose(fp);
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user