aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVasily <just.one.man@yandex.ru>2020-02-12 14:19:11 +0300
committerVasily <just.one.man@yandex.ru>2020-02-12 14:19:11 +0300
commita26c1ab17dd0bb4c7cefa9130c19128a08a57aee (patch)
tree9225435ae9ff9ee631b08ee2654063a413b8211b
parent42066ee326277fb181f609a8530cf419569efbf8 (diff)
Remove commented code
-rw-r--r--MediaBrowser.Api/Playback/BaseStreamingService.cs10
1 files changed, 1 insertions, 9 deletions
diff --git a/MediaBrowser.Api/Playback/BaseStreamingService.cs b/MediaBrowser.Api/Playback/BaseStreamingService.cs
index 43e837446..7837aa65b 100644
--- a/MediaBrowser.Api/Playback/BaseStreamingService.cs
+++ b/MediaBrowser.Api/Playback/BaseStreamingService.cs
@@ -329,7 +329,7 @@ namespace MediaBrowser.Api.Playback
{
var encodingOptions = ServerConfigurationManager.GetEncodingOptions();
- // enable throttling when not using hardware acceleration
+ // enable throttling when NOT using hardware acceleration
if (encodingOptions.HardwareAccelerationType == string.Empty)
{
return state.InputProtocol == MediaProtocol.File &&
@@ -340,14 +340,6 @@ namespace MediaBrowser.Api.Playback
!string.Equals(state.OutputVideoCodec, "copy", StringComparison.OrdinalIgnoreCase);
}
return false;
- //// do not use throttling with hardware encoders
- //return state.InputProtocol == MediaProtocol.File &&
- // state.RunTimeTicks.HasValue &&
- // state.RunTimeTicks.Value >= TimeSpan.FromMinutes(5).Ticks &&
- // state.IsInputVideo &&
- // state.VideoType == VideoType.VideoFile &&
- // !string.Equals(state.OutputVideoCodec, "copy", StringComparison.OrdinalIgnoreCase) &&
- // string.Equals(GetVideoEncoder(state), "libx264", StringComparison.OrdinalIgnoreCase);
}
/// <summary>