From 4cbf8d22dd3418832f4fb80d27fc9dc1b5df9b6b Mon Sep 17 00:00:00 2001 From: QuantumEntangledAndy Date: Thu, 26 Oct 2023 12:17:33 +0700 Subject: [PATCH] Try with repeat iframes again --- src/rtsp/stream.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/rtsp/stream.rs b/src/rtsp/stream.rs index 375a3eb..ff67074 100644 --- a/src/rtsp/stream.rs +++ b/src/rtsp/stream.rs @@ -429,9 +429,9 @@ async fn stream_run( let thread_vid = vid.clone(); let mut thread_client_count = client_count.subscribe(); log::debug!("stream_config.fps: {}", stream_config.fps); - // let fallback_time = Duration::from_secs(3); - // let fallback_framerate = - // Duration::from_millis(1000u64 / std::cmp::max(stream_config.fps as u64, 5u64)); + let fallback_time = Duration::from_secs(3); + let fallback_framerate = + Duration::from_millis(1000u64 / std::cmp::max(stream_config.fps as u64, 5u64)); if let Some(thread_vid) = thread_vid { set.spawn(async move { thread_client_count.activate().await?;