Преглед на файлове

update transcoding throttle

Luke Pulverenti преди 9 години
родител
ревизия
162f10239e
променени са 2 файла, в които са добавени 3 реда и са изтрити 3 реда
  1. 1 1
      MediaBrowser.Api/Playback/TranscodingThrottler.cs
  2. 2 2
      MediaBrowser.Model/Configuration/EncodingOptions.cs

+ 1 - 1
MediaBrowser.Api/Playback/TranscodingThrottler.cs

@@ -42,7 +42,7 @@ namespace MediaBrowser.Api.Playback
 
             var options = GetOptions();
 
-            if (options.EnableThrottling && IsThrottleAllowed(_job, options.ThrottleThresholdSeconds))
+            if (options.EnableThrottling && IsThrottleAllowed(_job, options.ThrottleDelaySeconds))
             {
                 PauseTranscoding();
             }

+ 2 - 2
MediaBrowser.Model/Configuration/EncodingOptions.cs

@@ -8,14 +8,14 @@ namespace MediaBrowser.Model.Configuration
         public 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;
         }
     }