update connect

This commit is contained in:
Luke Pulverenti
2015-06-05 01:32:14 -04:00
parent 7990f9ca50
commit 00aa3b0de0
4 changed files with 36 additions and 15 deletions

View File

@@ -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
{