mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-04-13 05:42:16 +01:00
Backport pull request #13532 from jellyfin/release-10.10.z
Fix image encoding concurrency limit
Original-merge: 3f539472f3
Merged-by: crobibero <cody@robibe.ro>
Backported-by: Bond_009 <bond.009@outlook.com>
This commit is contained in:
@@ -68,7 +68,7 @@ public sealed class ImageProcessor : IImageProcessor, IDisposable
|
||||
var semaphoreCount = config.Configuration.ParallelImageEncodingLimit;
|
||||
if (semaphoreCount < 1)
|
||||
{
|
||||
semaphoreCount = 2 * Environment.ProcessorCount;
|
||||
semaphoreCount = Environment.ProcessorCount;
|
||||
}
|
||||
|
||||
_parallelEncodingLimit = new(semaphoreCount);
|
||||
|
||||
Reference in New Issue
Block a user