pref: 增加开启摄像头失败重试功能

This commit is contained in:
bmy
2024-08-08 23:28:58 +08:00
parent 7b34be682a
commit aed1e7e55a
3 changed files with 54 additions and 6 deletions

View File

@@ -17,7 +17,7 @@ int main(int argc, char **argv)
char config_path[200];
sprintf(config_path, "%s/%s", getcwd(NULL, 0), config_file_path);
log_info("load config from %s", config_path);
log_info("[capture] 从以下路径加载配置:%s", config_path);
fp = fopen(config_path, "r");
if (!fp)
{