From db98926e6ce696639bd623e3ff48d1a57eaa0635 Mon Sep 17 00:00:00 2001 From: QuantumEntangledAndy Date: Mon, 23 Oct 2023 10:00:26 +0700 Subject: [PATCH] Disable keyframe repeat --- src/rtsp/stream.rs | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/rtsp/stream.rs b/src/rtsp/stream.rs index 5615086..8bf3d10 100644 --- a/src/rtsp/stream.rs +++ b/src/rtsp/stream.rs @@ -438,7 +438,7 @@ async fn stream_run( AnyResult::Ok(()) }, v = send_to_appsrc( - repeat_keyframe( + // repeat_keyframe( frametime_stream( hold_stream( wait_for_keyframe( @@ -446,9 +446,9 @@ async fn stream_run( ) ) ), - fallback_time, - fallback_framerate, - ), + // fallback_time, + // fallback_framerate, + // ), &thread_vid) => { v }, @@ -600,6 +600,7 @@ fn frametime_stream> + Unpin>( }) } +#[allow(dead_code)] // This will take a stream and if there is a notibable lack of data // then it will repeat the last keyframe (if there have been no // pframes in between)