Specify the default value in api spec
Signed-off-by: gnattu <gnattuoc@me.com>
This commit is contained in:
parent
24910348a1
commit
9acc93853e
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue
Block a user