From c1c2d26ec77f3a2e3c3cae797ae92095efb4051c Mon Sep 17 00:00:00 2001 From: 21pages Date: Tue, 25 Jun 2024 18:30:32 +0800 Subject: [PATCH] fix, check video_queue len rather than len when refresh (#8469) Signed-off-by: 21pages --- src/client/io_loop.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/client/io_loop.rs b/src/client/io_loop.rs index 81474f8b8..987f2b814 100644 --- a/src/client/io_loop.rs +++ b/src/client/io_loop.rs @@ -1048,7 +1048,7 @@ impl Remote { for (display, video_queue) in self.video_queue_map.read().unwrap().iter() { let tolerable = std::cmp::min(decode_fps, video_queue.capacity() / 2); if ctl.refresh_times < 20 // enough - && (len > tolerable + && (video_queue.len() > tolerable && (ctl.refresh_times == 0 || ctl.last_refresh_instant.elapsed().as_secs() > 10)) { // Refresh causes client set_display, left frames cause flickering.