소스 검색

Remove commented code

Vasily 5 년 전
부모
커밋
a26c1ab17d
1개의 변경된 파일1개의 추가작업 그리고 9개의 파일을 삭제
  1. 1 9
      MediaBrowser.Api/Playback/BaseStreamingService.cs

+ 1 - 9
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>