aboutsummaryrefslogtreecommitdiff
path: root/Jellyfin.Api/Controllers
diff options
context:
space:
mode:
authorcrobibero <cody@robibe.ro>2020-11-03 16:38:47 -0700
committercrobibero <cody@robibe.ro>2020-11-03 16:38:47 -0700
commitb4d52d8009d8e4a6836dc431ac5f336910a07d6c (patch)
tree3a050bf5a54e69dc1fb4515f79394b17c95a3483 /Jellyfin.Api/Controllers
parent5d88e610768c8b680096938a372585638ef18fe3 (diff)
Apply patch
Diffstat (limited to 'Jellyfin.Api/Controllers')
-rw-r--r--Jellyfin.Api/Controllers/LiveTvController.cs7
1 files changed, 2 insertions, 5 deletions
diff --git a/Jellyfin.Api/Controllers/LiveTvController.cs b/Jellyfin.Api/Controllers/LiveTvController.cs
index 58c7473c23..88a7542cee 100644
--- a/Jellyfin.Api/Controllers/LiveTvController.cs
+++ b/Jellyfin.Api/Controllers/LiveTvController.cs
@@ -1220,11 +1220,8 @@ namespace Jellyfin.Api.Controllers
return NotFound();
}
- await new ProgressiveFileCopier(liveStreamInfo, null, _transcodingJobHelper, CancellationToken.None)
- .WriteToAsync(Response.Body, CancellationToken.None)
- .ConfigureAwait(false);
- Response.ContentType = MimeTypes.GetMimeType("file." + container);
- return Ok();
+ var liveStream = new ProgressiveFileStream(liveStreamInfo.GetFilePath(), null, _transcodingJobHelper);
+ return new FileStreamResult(liveStream, MimeTypes.GetMimeType("file." + container));
}
private void AssertUserCanManageLiveTv()