Specify the default value in api spec

Signed-off-by: gnattu <gnattuoc@me.com>
This commit is contained in:
gnattu 2024-07-17 21:27:28 +08:00
parent 24910348a1
commit 9acc93853e

View File

@ -140,7 +140,7 @@ public class AudioController : BaseJellyfinApiController
[FromQuery] int? videoStreamIndex,
[FromQuery] EncodingContext? context,
[FromQuery] Dictionary<string, string>? streamOptions,
[FromQuery] bool? enableAudioVbrEncoding)
[FromQuery] bool enableAudioVbrEncoding = true)
{
StreamingRequestDto streamingRequest = new StreamingRequestDto
{
@ -192,7 +192,7 @@ public class AudioController : BaseJellyfinApiController
VideoStreamIndex = videoStreamIndex,
Context = context ?? EncodingContext.Static,
StreamOptions = streamOptions,
EnableAudioVbrEncoding = enableAudioVbrEncoding ?? true
EnableAudioVbrEncoding = enableAudioVbrEncoding
};
return await _audioHelper.GetAudioStream(_transcodingJobType, streamingRequest).ConfigureAwait(false);