aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Api/Playback/BaseStreamingService.cs
diff options
context:
space:
mode:
authorLuke Pulverenti <luke.pulverenti@gmail.com>2015-05-25 13:32:22 -0400
committerLuke Pulverenti <luke.pulverenti@gmail.com>2015-05-25 13:32:22 -0400
commit541d0c2ce174fc587a07ceb88df0d65656ef122a (patch)
tree92927ffcbbf481e8dce48cfceb849c0dffead4ac /MediaBrowser.Api/Playback/BaseStreamingService.cs
parent5048914445c371ced2f060b9bcd1d43945bcf8c0 (diff)
3.0.5621.2
Diffstat (limited to 'MediaBrowser.Api/Playback/BaseStreamingService.cs')
-rw-r--r--MediaBrowser.Api/Playback/BaseStreamingService.cs9
1 files changed, 3 insertions, 6 deletions
diff --git a/MediaBrowser.Api/Playback/BaseStreamingService.cs b/MediaBrowser.Api/Playback/BaseStreamingService.cs
index 1b7bcab53..31679aad3 100644
--- a/MediaBrowser.Api/Playback/BaseStreamingService.cs
+++ b/MediaBrowser.Api/Playback/BaseStreamingService.cs
@@ -1060,7 +1060,7 @@ namespace MediaBrowser.Api.Playback
private void StartThrottler(StreamState state, TranscodingJob transcodingJob)
{
- if (EnableThrottling && state.InputProtocol == MediaProtocol.File &&
+ if (EnableThrottling(state) && state.InputProtocol == MediaProtocol.File &&
state.RunTimeTicks.HasValue &&
state.VideoType == VideoType.VideoFile &&
!string.Equals(state.OutputVideoCodec, "copy", StringComparison.OrdinalIgnoreCase))
@@ -1073,12 +1073,9 @@ namespace MediaBrowser.Api.Playback
}
}
- protected virtual bool EnableThrottling
+ protected virtual bool EnableThrottling(StreamState state)
{
- get
- {
- return false;
- }
+ return true;
}
private async void StartStreamingLog(TranscodingJob transcodingJob, StreamState state, Stream source, Stream target)