aboutsummaryrefslogtreecommitdiff
path: root/Jellyfin.Api/Controllers
diff options
context:
space:
mode:
authorcrobibero <cody@robibe.ro>2020-10-29 13:56:29 -0600
committercrobibero <cody@robibe.ro>2020-10-29 13:56:29 -0600
commit3568c5f39b7429544c8a26677f400cfee2eaa7fd (patch)
treebf0a52b13a9942132c339f7f886a2930f9fbdab0 /Jellyfin.Api/Controllers
parent429e59fb818e605339eab2b368ceaaf2a1bd5c2b (diff)
Fix early filestream close
Diffstat (limited to 'Jellyfin.Api/Controllers')
-rw-r--r--Jellyfin.Api/Controllers/LiveTvController.cs6
1 files changed, 3 insertions, 3 deletions
diff --git a/Jellyfin.Api/Controllers/LiveTvController.cs b/Jellyfin.Api/Controllers/LiveTvController.cs
index 22f140ea6..2cc2f0e74 100644
--- a/Jellyfin.Api/Controllers/LiveTvController.cs
+++ b/Jellyfin.Api/Controllers/LiveTvController.cs
@@ -1220,11 +1220,11 @@ namespace Jellyfin.Api.Controllers
return NotFound();
}
- await using var memoryStream = new MemoryStream();
await new ProgressiveFileCopier(liveStreamInfo, null, _transcodingJobHelper, CancellationToken.None)
- .WriteToAsync(memoryStream, CancellationToken.None)
+ .WriteToAsync(Response.Body, CancellationToken.None)
.ConfigureAwait(false);
- return File(memoryStream, MimeTypes.GetMimeType("file." + container));
+ Response.ContentType = MimeTypes.GetMimeType("file." + container);
+ return Ok();
}
private void AssertUserCanManageLiveTv()