The Free Software Media System - Server Backend & API
update transcoding throttle
Luke Pulverenti3790eff69eea
diff --git a/MediaBrowser.Api/Playback/TranscodingThrottler.cs b/MediaBrowser.Api/Playback/TranscodingThrottler.csindex ece4550095..a7d53cd447 100644--- a/MediaBrowser.Api/Playback/TranscodingThrottler.cs+++ b/MediaBrowser.Api/Playback/TranscodingThrottler.cs@@ -42,7 +42,7 @@ namespace MediaBrowser.Api.Playbackvar options = GetOptions();- if (options.EnableThrottling && IsThrottleAllowed(_job, options.ThrottleThresholdSeconds))+ if (options.EnableThrottling && IsThrottleAllowed(_job, options.ThrottleDelaySeconds)){PauseTranscoding();}diff --git a/MediaBrowser.Model/Configuration/EncodingOptions.cs b/MediaBrowser.Model/Configuration/EncodingOptions.csindex b41ad7eb0c..516d00ee6d 100644--- a/MediaBrowser.Model/Configuration/EncodingOptions.cs+++ b/MediaBrowser.Model/Configuration/EncodingOptions.cs@@ -8,14 +8,14 @@ namespace MediaBrowser.Model.Configurationpublic double DownMixAudioBoost { get; set; }public bool EnableDebugLogging { get; set; }public bool EnableThrottling { get; set; }- public int ThrottleThresholdSeconds { get; set; }+ public int ThrottleDelaySeconds { get; set; }public string HardwareAccelerationType { get; set; }public EncodingOptions(){DownMixAudioBoost = 2;EnableThrottling = true;- ThrottleThresholdSeconds = 110;+ ThrottleDelaySeconds = 180;EncodingThreadCount = -1;}}