From 3ffd73f3d3ffb3a4bf1d695242da04363e15fdb5 Mon Sep 17 00:00:00 2001 From: pigeatgarlic Date: Wed, 8 Nov 2023 12:23:48 +0700 Subject: [PATCH] pop instantly --- src/video.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/video.cpp b/src/video.cpp index 52c6949d..2946c380 100644 --- a/src/video.cpp +++ b/src/video.cpp @@ -1805,7 +1805,7 @@ namespace video { // Encode at a minimum of 10 FPS to avoid image quality issues with static content if (!requested_idr_frame || images->peek()) { - if (auto img = images->pop(100ms)) { + if (auto img = images->pop(1ms)) { frame_timestamp = img->frame_timestamp; if (session->convert(*img)) { BOOST_LOG(error) << "Could not convert image"sv;