diff options
| author | Patrick Barron <18354464+barronpm@users.noreply.github.com> | 2020-08-19 21:45:31 +0000 |
|---|---|---|
| committer | Patrick Barron <barronpm@gmail.com> | 2020-08-19 18:11:17 -0400 |
| commit | 98ed90c4a2d94dc75c4c284d695e752ee3c882d5 (patch) | |
| tree | f5d2163c6611b37f13d115c8b38ed424eb066801 /Jellyfin.Api/Controllers/HlsSegmentController.cs | |
| parent | ee7beed804a23e1f4ef180ab17a0c99b47401caa (diff) | |
| parent | 634ee2d1e913277ea8f419aca9d91a8e58426642 (diff) | |
Merge branch 'master' into event-rewrite-1
Diffstat (limited to 'Jellyfin.Api/Controllers/HlsSegmentController.cs')
| -rw-r--r-- | Jellyfin.Api/Controllers/HlsSegmentController.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Jellyfin.Api/Controllers/HlsSegmentController.cs b/Jellyfin.Api/Controllers/HlsSegmentController.cs index e4a6842bc..816252f80 100644 --- a/Jellyfin.Api/Controllers/HlsSegmentController.cs +++ b/Jellyfin.Api/Controllers/HlsSegmentController.cs @@ -61,7 +61,7 @@ namespace Jellyfin.Api.Controllers var file = segmentId + Path.GetExtension(Request.Path); file = Path.Combine(_serverConfigurationManager.GetTranscodePath(), file); - return FileStreamResponseHelpers.GetStaticFileResult(file, MimeTypes.GetMimeType(file)!, false, this); + return FileStreamResponseHelpers.GetStaticFileResult(file, MimeTypes.GetMimeType(file)!, false, HttpContext); } /// <summary> @@ -148,7 +148,7 @@ namespace Jellyfin.Api.Controllers return Task.CompletedTask; }); - return FileStreamResponseHelpers.GetStaticFileResult(path, MimeTypes.GetMimeType(path)!, false, this); + return FileStreamResponseHelpers.GetStaticFileResult(path, MimeTypes.GetMimeType(path)!, false, HttpContext); } } } |
