修复ffmpeg日志保存目录相关bug

每次调用addFFmpegSource/getSnap接口时,都可能导致篡改全局配置变量
This commit is contained in:
xia-chu
2023-09-23 20:34:36 +08:00
parent f69f3b3029
commit 585f7c3a3a
2 changed files with 2 additions and 2 deletions

View File

@@ -108,7 +108,7 @@ static int cloneFunc(void *ptr) {
#endif
void Process::run(const string &cmd, string &log_file) {
void Process::run(const string &cmd, string log_file) {
kill(2000);
#ifdef _WIN32
STARTUPINFO si = { 0 };