From 3ebd09c3607db65e9eb7a5ff77b76ab709c9ec0f Mon Sep 17 00:00:00 2001 From: "Steinar H. Gunderson" Date: Mon, 18 Mar 2019 19:31:18 +0100 Subject: [PATCH] Increase the size of the VA-API resource freelist, to try to trickle the threading issues a tiny bit less. --- nageru/mjpeg_encoder.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nageru/mjpeg_encoder.cpp b/nageru/mjpeg_encoder.cpp index 01173e0..d66ef14 100644 --- a/nageru/mjpeg_encoder.cpp +++ b/nageru/mjpeg_encoder.cpp @@ -443,7 +443,7 @@ MJPEGEncoder::VAResources MJPEGEncoder::get_va_resources(unsigned width, unsigne void MJPEGEncoder::release_va_resources(MJPEGEncoder::VAResources resources) { lock_guard lock(va_resources_mutex); - if (va_resources_freelist.size() > 10) { + if (va_resources_freelist.size() > 50) { auto it = va_resources_freelist.end(); --it; -- 2.39.2