mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-08-04 15:28:23 +00:00
update SubtitleService
This commit is contained in:
parent
1e238c70bc
commit
ed1f2a8a0c
3 changed files with 5 additions and 11 deletions
|
|
@ -88,8 +88,6 @@ namespace MediaBrowser.Server.Implementations.HttpServer
|
|||
Headers["Content-Length"] = source.Length.ToString(UsCulture);
|
||||
}
|
||||
|
||||
private const int BufferSize = 81920;
|
||||
|
||||
public async Task WriteToAsync(Stream responseStream, CancellationToken cancellationToken)
|
||||
{
|
||||
try
|
||||
|
|
@ -102,7 +100,7 @@ namespace MediaBrowser.Server.Implementations.HttpServer
|
|||
{
|
||||
using (var src = SourceStream)
|
||||
{
|
||||
await src.CopyToAsync(responseStream, BufferSize).ConfigureAwait(false);
|
||||
await src.CopyToAsync(responseStream).ConfigureAwait(false);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue