浏览代码

fix EnableThrottling override

Luke Pulverenti 8 年之前
父节点
当前提交
b4bc403747

+ 1 - 1
MediaBrowser.Api/Playback/BaseStreamingService.cs

@@ -1241,7 +1241,7 @@ namespace MediaBrowser.Api.Playback
             }
             }
         }
         }
 
 
-        protected virtual bool EnableThrottling(StreamState state)
+        private bool EnableThrottling(StreamState state)
         {
         {
             // do not use throttling with hardware encoders
             // do not use throttling with hardware encoders
             return state.InputProtocol == MediaProtocol.File &&
             return state.InputProtocol == MediaProtocol.File &&

+ 0 - 5
MediaBrowser.Api/Playback/Hls/DynamicHlsService.cs

@@ -922,11 +922,6 @@ namespace MediaBrowser.Api.Playback.Hls
                             ).Trim();
                             ).Trim();
         }
         }
 
 
-        protected override bool EnableThrottling(StreamState state)
-        {
-            return true;
-        }
-
         /// <summary>
         /// <summary>
         /// Gets the segment file extension.
         /// Gets the segment file extension.
         /// </summary>
         /// </summary>