소스 검색

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);
                     }
                 }
             }