浏览代码

increase static stream buffer size

Luke Pulverenti 11 年之前
父节点
当前提交
e4dfbb6f55
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      MediaBrowser.Api/Playback/StaticRemoteStreamWriter.cs

+ 2 - 2
MediaBrowser.Api/Playback/StaticRemoteStreamWriter.cs

@@ -64,9 +64,9 @@ namespace MediaBrowser.Api.Playback
             {
                 using (_msg)
                 {
-                    using (var input = await _msg.Content.ReadAsStreamAsync().ConfigureAwait(false))
+                    using (var remoteStream = await _msg.Content.ReadAsStreamAsync().ConfigureAwait(false))
                     {
-                        await input.CopyToAsync(responseStream).ConfigureAwait(false);
+                        await remoteStream.CopyToAsync(responseStream, 8192000).ConfigureAwait(false);
                     }
                 }
             }