Apply patch

This commit is contained in:
crobibero
2020-11-03 16:38:47 -07:00
parent 5d88e61076
commit b4d52d8009
5 changed files with 22 additions and 9 deletions

View File

@@ -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()