Skip to content

Commit

Permalink
src: pipeline: Increase max lost timestamps
Browse files Browse the repository at this point in the history
  • Loading branch information
joaoantoniocardoso authored and patrickelectric committed Oct 31, 2023
1 parent f152e1a commit 02ee49f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/stream/pipeline/runner.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<gst::ClockTime> = 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));
Expand Down

0 comments on commit 02ee49f

Please sign in to comment.