aboutsummaryrefslogtreecommitdiff
path: root/Jellyfin.Api/Controllers/HlsSegmentController.cs
diff options
context:
space:
mode:
authorBond-009 <bond.009@outlook.com>2021-03-05 11:04:47 +0100
committerGitHub <noreply@github.com>2021-03-05 11:04:47 +0100
commita0f6bc14a2c9817b3199a81872eb7d84489cde0d (patch)
tree0eb5fcf1d482e0f1451ae2e21bb12bc4dcde3a2a /Jellyfin.Api/Controllers/HlsSegmentController.cs
parented7154db68f089cb8366aedaaeb93f1d5405251a (diff)
parent858c91ab485f79648aa625e89378c6de9e19df4b (diff)
Merge pull request #5375 from crobibero/default-api-value
Specify defaults or set query parameter to nullable
Diffstat (limited to 'Jellyfin.Api/Controllers/HlsSegmentController.cs')
-rw-r--r--Jellyfin.Api/Controllers/HlsSegmentController.cs4
1 files changed, 3 insertions, 1 deletions
diff --git a/Jellyfin.Api/Controllers/HlsSegmentController.cs b/Jellyfin.Api/Controllers/HlsSegmentController.cs
index 25abe73ed..d0ed45acb 100644
--- a/Jellyfin.Api/Controllers/HlsSegmentController.cs
+++ b/Jellyfin.Api/Controllers/HlsSegmentController.cs
@@ -96,7 +96,9 @@ namespace Jellyfin.Api.Controllers
[HttpDelete("Videos/ActiveEncodings")]
[Authorize(Policy = Policies.DefaultAuthorization)]
[ProducesResponseType(StatusCodes.Status204NoContent)]
- public ActionResult StopEncodingProcess([FromQuery] string deviceId, [FromQuery] string playSessionId)
+ public ActionResult StopEncodingProcess(
+ [FromQuery, Required] string deviceId,
+ [FromQuery, Required] string playSessionId)
{
_transcodingJobHelper.KillTranscodingJobs(deviceId, playSessionId, path => true);
return NoContent();