Remove unused httpContext parameter
This commit is contained in:
parent
3ea54a8009
commit
d5e7e75421
|
@ -1954,7 +1954,7 @@ namespace Jellyfin.Api.Controllers
|
|||
return Task.CompletedTask;
|
||||
});
|
||||
|
||||
return FileStreamResponseHelpers.GetStaticFileResult(segmentPath, MimeTypes.GetMimeType(segmentPath), HttpContext);
|
||||
return FileStreamResponseHelpers.GetStaticFileResult(segmentPath, MimeTypes.GetMimeType(segmentPath));
|
||||
}
|
||||
|
||||
private long GetEndPositionTicks(StreamState state, int requestedIndex)
|
||||
|
|
|
@ -69,7 +69,7 @@ namespace Jellyfin.Api.Controllers
|
|||
return BadRequest("Invalid segment.");
|
||||
}
|
||||
|
||||
return FileStreamResponseHelpers.GetStaticFileResult(file, MimeTypes.GetMimeType(file), HttpContext);
|
||||
return FileStreamResponseHelpers.GetStaticFileResult(file, MimeTypes.GetMimeType(file));
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
@ -186,7 +186,7 @@ namespace Jellyfin.Api.Controllers
|
|||
return Task.CompletedTask;
|
||||
});
|
||||
|
||||
return FileStreamResponseHelpers.GetStaticFileResult(path, MimeTypes.GetMimeType(path), HttpContext);
|
||||
return FileStreamResponseHelpers.GetStaticFileResult(path, MimeTypes.GetMimeType(path));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -499,8 +499,7 @@ namespace Jellyfin.Api.Controllers
|
|||
|
||||
return FileStreamResponseHelpers.GetStaticFileResult(
|
||||
state.MediaPath,
|
||||
contentType,
|
||||
HttpContext);
|
||||
contentType);
|
||||
}
|
||||
|
||||
// Need to start ffmpeg (because media can't be returned directly)
|
||||
|
|
|
@ -167,8 +167,7 @@ namespace Jellyfin.Api.Helpers
|
|||
|
||||
return FileStreamResponseHelpers.GetStaticFileResult(
|
||||
state.MediaPath,
|
||||
contentType,
|
||||
_httpContextAccessor.HttpContext);
|
||||
contentType);
|
||||
}
|
||||
|
||||
// Need to start ffmpeg (because media can't be returned directly)
|
||||
|
|
|
@ -51,12 +51,10 @@ namespace Jellyfin.Api.Helpers
|
|||
/// </summary>
|
||||
/// <param name="path">The path to the file.</param>
|
||||
/// <param name="contentType">The content type of the file.</param>
|
||||
/// <param name="httpContext">The current http context.</param>
|
||||
/// <returns>An <see cref="ActionResult"/> the file.</returns>
|
||||
public static ActionResult GetStaticFileResult(
|
||||
string path,
|
||||
string contentType,
|
||||
HttpContext httpContext)
|
||||
string contentType)
|
||||
{
|
||||
return new PhysicalFileResult(path, contentType) { EnableRangeProcessing = true };
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user