From 00aa3b0de09a97c5eba2f46acf7a78c998d79f2b Mon Sep 17 00:00:00 2001 From: Luke Pulverenti Date: Fri, 5 Jun 2015 01:32:14 -0400 Subject: update connect --- MediaBrowser.Api/Playback/TranscodingThrottler.cs | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) (limited to 'MediaBrowser.Api/Playback/TranscodingThrottler.cs') diff --git a/MediaBrowser.Api/Playback/TranscodingThrottler.cs b/MediaBrowser.Api/Playback/TranscodingThrottler.cs index f94d5d837..fec3dda86 100644 --- a/MediaBrowser.Api/Playback/TranscodingThrottler.cs +++ b/MediaBrowser.Api/Playback/TranscodingThrottler.cs @@ -42,14 +42,7 @@ namespace MediaBrowser.Api.Playback var options = GetOptions(); - var threshold = options.ThrottleThresholdInSeconds; - - if (!options.EnableThrottling) - { - threshold *= 2; - } - - if (IsThrottleAllowed(_job, threshold)) + if (options.EnableThrottling && IsThrottleAllowed(_job, options.ThrottleThresholdInSeconds)) { PauseTranscoding(); } @@ -63,7 +56,7 @@ namespace MediaBrowser.Api.Playback { if (!_isPaused) { - //_logger.Debug("Sending pause command to ffmpeg"); + _logger.Debug("Sending pause command to ffmpeg"); try { @@ -81,7 +74,7 @@ namespace MediaBrowser.Api.Playback { if (_isPaused) { - //_logger.Debug("Sending unpause command to ffmpeg"); + _logger.Debug("Sending unpause command to ffmpeg"); try { -- cgit v1.2.3