fix: 断联视频堆积问题与控制命令失效问题
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user