aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Server.Implementations/HttpServer/RangeRequestWriter.cs
diff options
context:
space:
mode:
authorLuke Pulverenti <luke.pulverenti@gmail.com>2014-08-30 10:26:29 -0400
committerLuke Pulverenti <luke.pulverenti@gmail.com>2014-08-30 10:26:29 -0400
commit33c6c37316b062b9afc1a4b3c8f97b658cb62a70 (patch)
tree9baddcb038f806e0efa903b688aaccaff85fb5d2 /MediaBrowser.Server.Implementations/HttpServer/RangeRequestWriter.cs
parent6a9dbf6ae85b4e7abcf06f7f29ef9d8b0b890876 (diff)
Adjust transcoding throttling
Diffstat (limited to 'MediaBrowser.Server.Implementations/HttpServer/RangeRequestWriter.cs')
-rw-r--r--MediaBrowser.Server.Implementations/HttpServer/RangeRequestWriter.cs3
1 files changed, 2 insertions, 1 deletions
diff --git a/MediaBrowser.Server.Implementations/HttpServer/RangeRequestWriter.cs b/MediaBrowser.Server.Implementations/HttpServer/RangeRequestWriter.cs
index 5fd43aa76..657545069 100644
--- a/MediaBrowser.Server.Implementations/HttpServer/RangeRequestWriter.cs
+++ b/MediaBrowser.Server.Implementations/HttpServer/RangeRequestWriter.cs
@@ -26,6 +26,7 @@ namespace MediaBrowser.Server.Implementations.HttpServer
public bool Throttle { get; set; }
public long ThrottleLimit { get; set; }
+ public long MinThrottlePosition;
/// <summary>
/// The _options
@@ -166,7 +167,7 @@ namespace MediaBrowser.Server.Implementations.HttpServer
{
responseStream = new ThrottledStream(responseStream, ThrottleLimit)
{
- MinThrottlePosition = ThrottleLimit * 180
+ MinThrottlePosition = MinThrottlePosition
};
}
var task = WriteToAsync(responseStream);