]> git.sesse.net Git - nageru/commitdiff
Increase the size of the VA-API resource freelist, to try to trickle the threading...
authorSteinar H. Gunderson <sgunderson@bigfoot.com>
Mon, 18 Mar 2019 18:31:18 +0000 (19:31 +0100)
committerSteinar H. Gunderson <sgunderson@bigfoot.com>
Mon, 18 Mar 2019 18:31:18 +0000 (19:31 +0100)
nageru/mjpeg_encoder.cpp

index 01173e0ac1ed723b6740ce4e5340f3447ca3742e..d66ef1438a1ae24a973add5defcde6c386ec0fcc 100644 (file)
@@ -443,7 +443,7 @@ MJPEGEncoder::VAResources MJPEGEncoder::get_va_resources(unsigned width, unsigne
 void MJPEGEncoder::release_va_resources(MJPEGEncoder::VAResources resources)
 {
        lock_guard<mutex> lock(va_resources_mutex);
-       if (va_resources_freelist.size() > 10) {
+       if (va_resources_freelist.size() > 50) {
                auto it = va_resources_freelist.end();
                --it;