From 159cb4b716c97534d4edc9a8bec985826fe18ecd Mon Sep 17 00:00:00 2001 From: QuantumEntangledAndy Date: Mon, 30 Oct 2023 07:44:37 +0700 Subject: [PATCH] Frame time changes --- src/rtsp/stream.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rtsp/stream.rs b/src/rtsp/stream.rs index 95f36a4..86535a1 100644 --- a/src/rtsp/stream.rs +++ b/src/rtsp/stream.rs @@ -593,7 +593,7 @@ fn frametime_stream> + Unpin>( // log::debug!("curr_ts: {curr_ts:?}, {prev_ts:?} delta_ts: {delta_ts:?}"); sleep_until(last_release + delta_ts).await; - last_release = Instant::now(); + last_release += delta_ts; cached_prev_ts = Some(curr_ts); yield Ok(frame);