Fix build and thread detection logic

This commit is contained in:
Fernando Fernández
2020-11-18 10:01:03 +01:00
parent 94cae4f145
commit 38c3b6fcd3
6 changed files with 20 additions and 16 deletions

View File

@@ -1329,7 +1329,7 @@ namespace Jellyfin.Api.Controllers
{
var videoCodec = _encodingHelper.GetVideoEncoder(state, encodingOptions);
var threads = _encodingHelper.GetNumberOfThreads(state, encodingOptions, videoCodec);
var threads = EncodingHelper.GetNumberOfThreads(state, encodingOptions, videoCodec); // GetNumberOfThreads is static
if (state.BaseRequest.BreakOnNonKeyFrames)
{