浏览代码

Update FileStreamResponseHelpers.cs

BaronGreenback 4 年之前
父节点
当前提交
25e965b85c
共有 1 个文件被更改,包括 0 次插入5 次删除
  1. 0 5
      Jellyfin.Api/Helpers/FileStreamResponseHelpers.cs

+ 0 - 5
Jellyfin.Api/Helpers/FileStreamResponseHelpers.cs

@@ -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
             {
             {