Fix high single thread usage in throttler

this requires jellyfin-ffmpeg >= 5.0.1-8
This commit is contained in:
nyanmisaka
2022-09-09 21:14:02 +08:00
parent 5bcab0f0f8
commit c53f6a2890
5 changed files with 59 additions and 13 deletions

View File

@@ -654,7 +654,7 @@ namespace Jellyfin.Api.Helpers
{
if (EnableThrottling(state))
{
transcodingJob.TranscodingThrottler = new TranscodingThrottler(transcodingJob, new Logger<TranscodingThrottler>(new LoggerFactory()), _serverConfigurationManager, _fileSystem);
transcodingJob.TranscodingThrottler = new TranscodingThrottler(transcodingJob, new Logger<TranscodingThrottler>(new LoggerFactory()), _serverConfigurationManager, _fileSystem, _mediaEncoder);
transcodingJob.TranscodingThrottler.Start();
}
}