diff options
| author | crobibero <cody@robibe.ro> | 2021-03-04 18:25:52 -0700 |
|---|---|---|
| committer | crobibero <cody@robibe.ro> | 2021-03-04 18:25:52 -0700 |
| commit | 858c91ab485f79648aa625e89378c6de9e19df4b (patch) | |
| tree | bbc436e5acbc75f5d87befbd391a547251b5f510 /Jellyfin.Api/Controllers/HlsSegmentController.cs | |
| parent | 8615847a8aba1f504b184e79907e6885215ffdaa (diff) | |
Specify defaults or set query parameter to nullable
Diffstat (limited to 'Jellyfin.Api/Controllers/HlsSegmentController.cs')
| -rw-r--r-- | Jellyfin.Api/Controllers/HlsSegmentController.cs | 4 |
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(); |
