3.0.5621.2

This commit is contained in:
Luke Pulverenti
2015-05-25 13:32:22 -04:00
parent 5048914445
commit 541d0c2ce1
13 changed files with 602 additions and 601 deletions

View File

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