update buffer sizes

pull/702/head
Luke Pulverenti 8 years ago
parent 308233ceba
commit 4f32b57e58

@ -257,8 +257,7 @@ namespace MediaBrowser.Api.Playback.Hls
return await GetSegmentResult(state, playlistPath, segmentPath, requestedIndex, job, cancellationToken).ConfigureAwait(false); return await GetSegmentResult(state, playlistPath, segmentPath, requestedIndex, job, cancellationToken).ConfigureAwait(false);
} }
// 256k private const int BufferSize = 81920;
private const int BufferSize = 262144;
private long GetStartPositionTicks(StreamState state, int requestedIndex) private long GetStartPositionTicks(StreamState state, int requestedIndex)
{ {

@ -16,7 +16,7 @@ namespace MediaBrowser.Api.Playback.Progressive
private readonly ILogger _logger; private readonly ILogger _logger;
// 256k // 256k
private const int BufferSize = 262144; private const int BufferSize = 81920;
private long _bytesWritten = 0; private long _bytesWritten = 0;

@ -9,11 +9,11 @@ namespace MediaBrowser.Common.IO
/// <summary> /// <summary>
/// The default copy to buffer size /// The default copy to buffer size
/// </summary> /// </summary>
public const int DefaultCopyToBufferSize = 262144; public const int DefaultCopyToBufferSize = 81920;
/// <summary> /// <summary>
/// The default file stream buffer size /// The default file stream buffer size
/// </summary> /// </summary>
public const int DefaultFileStreamBufferSize = 262144; public const int DefaultFileStreamBufferSize = 81920;
} }
} }

@ -28,8 +28,7 @@ namespace MediaBrowser.Server.Implementations.HttpServer
public Action OnComplete { get; set; } public Action OnComplete { get; set; }
private readonly ILogger _logger; private readonly ILogger _logger;
// 256k private const int BufferSize = 81920;
private const int BufferSize = 262144;
/// <summary> /// <summary>
/// The _options /// The _options

@ -75,8 +75,7 @@ namespace MediaBrowser.Server.Implementations.HttpServer
{ {
} }
// 256k private const int BufferSize = 81920;
private const int BufferSize = 262144;
/// <summary> /// <summary>
/// Writes to. /// Writes to.

Loading…
Cancel
Save