Explorar o código

increase static stream buffer size

Luke Pulverenti %!s(int64=11) %!d(string=hai) anos
pai
achega
e4dfbb6f55
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  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);
                     }
                 }
             }