From 02ee49fd5040a46440584066435903a6b33158b9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Ant=C3=B4nio=20Cardoso?= Date: Thu, 26 Oct 2023 14:02:08 -0300 Subject: [PATCH] src: pipeline: Increase max lost timestamps --- src/stream/pipeline/runner.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/stream/pipeline/runner.rs b/src/stream/pipeline/runner.rs index 2b38982f..adc0f0eb 100644 --- a/src/stream/pipeline/runner.rs +++ b/src/stream/pipeline/runner.rs @@ -77,10 +77,10 @@ impl PipelineRunner { // Check if we need to break external loop. // Some cameras have a duplicated timestamp when starting. // to avoid restarting the camera once and once again, - // this checks for a maximum of 10 lost before restarting. + // this checks for a maximum number of lost before restarting. let mut previous_position: Option = None; let mut lost_timestamps: usize = 0; - let max_lost_timestamps: usize = 15; + let max_lost_timestamps: usize = 30; 'outer: loop { std::thread::sleep(std::time::Duration::from_millis(100));