fix: 断联视频堆积问题与控制命令失效问题

This commit is contained in:
2026-04-11 03:55:19 +08:00
parent 6f727dbe57
commit 84e0cc54d2
8 changed files with 381 additions and 9 deletions

View File

@@ -17,10 +17,17 @@ int main(void) {
return 1;
}
if (video_pipeline_run(&config, &stats, NULL) != 0) {
perror("video_pipeline_run");
video_pipeline_stats_destroy(&stats);
return 1;
for (;;) {
int rc = video_pipeline_run(&config, &stats, NULL);
if (rc == 0) {
break;
}
if (rc != VIDEO_PIPELINE_RUN_RETRY_IMMEDIATE) {
perror("video_pipeline_run");
video_pipeline_stats_destroy(&stats);
return 1;
}
}
video_pipeline_stats_destroy(&stats);