aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Api/Playback/TranscodingThrottler.cs
diff options
context:
space:
mode:
authorLuke Pulverenti <luke.pulverenti@gmail.com>2015-06-05 01:32:14 -0400
committerLuke Pulverenti <luke.pulverenti@gmail.com>2015-06-05 01:32:14 -0400
commit00aa3b0de09a97c5eba2f46acf7a78c998d79f2b (patch)
tree5e7c84952c6329e7d951c837eb4a9ebf41dee979 /MediaBrowser.Api/Playback/TranscodingThrottler.cs
parent7990f9ca50c21be298d8fa90ce70015a80b976c3 (diff)
update connect
Diffstat (limited to 'MediaBrowser.Api/Playback/TranscodingThrottler.cs')
-rw-r--r--MediaBrowser.Api/Playback/TranscodingThrottler.cs13
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
{