mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2026-06-14 12:05:58 +08:00
适配ZLToolKit
This commit is contained in:
@@ -343,7 +343,7 @@ void FFmpegSnap::makeSnap(const string &play_url, const string &save_path, float
|
||||
// FFmpeg进程退出了可以取消定时器了
|
||||
delayTask->cancel();
|
||||
// 执行回调函数
|
||||
bool success = process->exit_code() == 0 && File::fileSize(save_path.data());
|
||||
cb(success, (!success && !log_file.empty()) ? File::loadFile(log_file.data()) : "");
|
||||
bool success = process->exit_code() == 0 && File::fileSize(save_path);
|
||||
cb(success, (!success && !log_file.empty()) ? File::loadFile(log_file) : "");
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user