aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Api/Playback/Progressive/ProgressiveStreamWriter.cs
diff options
context:
space:
mode:
authorLuke Pulverenti <luke.pulverenti@gmail.com>2015-07-31 16:38:08 -0400
committerLuke Pulverenti <luke.pulverenti@gmail.com>2015-07-31 16:38:08 -0400
commita7b25c065c831804c701c44f30b277c9c7689ac3 (patch)
tree9a6ec8af764cefcb414dbc172804203cc7df908c /MediaBrowser.Api/Playback/Progressive/ProgressiveStreamWriter.cs
parent25395c5d82a9136253706a7fed5a552dcc452acd (diff)
update stream buffering
Diffstat (limited to 'MediaBrowser.Api/Playback/Progressive/ProgressiveStreamWriter.cs')
-rw-r--r--MediaBrowser.Api/Playback/Progressive/ProgressiveStreamWriter.cs5
1 files changed, 4 insertions, 1 deletions
diff --git a/MediaBrowser.Api/Playback/Progressive/ProgressiveStreamWriter.cs b/MediaBrowser.Api/Playback/Progressive/ProgressiveStreamWriter.cs
index 6a3443f35..adedd9461 100644
--- a/MediaBrowser.Api/Playback/Progressive/ProgressiveStreamWriter.cs
+++ b/MediaBrowser.Api/Playback/Progressive/ProgressiveStreamWriter.cs
@@ -91,6 +91,9 @@ namespace MediaBrowser.Api.Playback.Progressive
private readonly IFileSystem _fileSystem;
private readonly TranscodingJob _job;
+ // 256k
+ private const int BufferSize = 262144;
+
private long _bytesWritten = 0;
public ProgressiveFileCopier(IFileSystem fileSystem, TranscodingJob job)
@@ -108,7 +111,7 @@ namespace MediaBrowser.Api.Playback.Progressive
{
while (eofCount < 15)
{
- CopyToInternal(fs, outputStream, 81920);
+ CopyToInternal(fs, outputStream, BufferSize);
var fsPosition = fs.Position;