Update FileStreamResponseHelpers.cs

This commit is contained in:
BaronGreenback 2020-09-05 20:33:18 +01:00 committed by GitHub
parent d3e8834e80
commit 25e965b85c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -126,11 +126,6 @@ namespace Jellyfin.Api.Helpers
await new ProgressiveFileCopier(outputPath, job, transcodingJobHelper, CancellationToken.None) await new ProgressiveFileCopier(outputPath, job, transcodingJobHelper, CancellationToken.None)
.WriteToAsync(httpContext.Response.Body, CancellationToken.None).ConfigureAwait(false); .WriteToAsync(httpContext.Response.Body, CancellationToken.None).ConfigureAwait(false);
return new FileStreamResult(httpContext.Response.Body, contentType); return new FileStreamResult(httpContext.Response.Body, contentType);
// var memoryStream = new MemoryStream();
// await new ProgressiveFileCopier(outputPath, job, transcodingJobHelper, CancellationToken.None).WriteToAsync(memoryStream, CancellationToken.None).ConfigureAwait(false);
// memoryStream.Position = 0;
// return new FileStreamResult(memoryStream, contentType);
} }
finally finally
{ {