重命名前确保关闭mp4文件:#416

This commit is contained in:
xiongziliang
2020-07-16 10:40:30 +08:00
parent c507e8a772
commit bdb28c53de
3 changed files with 9 additions and 2 deletions

View File

@@ -93,6 +93,7 @@ void MP4File::openFile(const char *file,const char *mode) {
//创建智能指针
_file.reset(fp,[file_buf](FILE *fp) {
fflush(fp);
fclose(fp);
});
}