diff options
| author | Luke Pulverenti <luke.pulverenti@gmail.com> | 2015-06-05 01:32:14 -0400 |
|---|---|---|
| committer | Luke Pulverenti <luke.pulverenti@gmail.com> | 2015-06-05 01:32:14 -0400 |
| commit | 00aa3b0de09a97c5eba2f46acf7a78c998d79f2b (patch) | |
| tree | 5e7c84952c6329e7d951c837eb4a9ebf41dee979 /MediaBrowser.Api/Playback/TranscodingThrottler.cs | |
| parent | 7990f9ca50c21be298d8fa90ce70015a80b976c3 (diff) | |
update connect
Diffstat (limited to 'MediaBrowser.Api/Playback/TranscodingThrottler.cs')
| -rw-r--r-- | MediaBrowser.Api/Playback/TranscodingThrottler.cs | 13 |
1 files changed, 3 insertions, 10 deletions
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 { |
