mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-06-03 21:54:26 -04:00
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] int? videoStreamIndex,
|
||||||
[FromQuery] EncodingContext? context,
|
[FromQuery] EncodingContext? context,
|
||||||
[FromQuery] Dictionary<string, string>? streamOptions,
|
[FromQuery] Dictionary<string, string>? streamOptions,
|
||||||
[FromQuery] bool? enableAudioVbrEncoding)
|
[FromQuery] bool enableAudioVbrEncoding = true)
|
||||||
{
|
{
|
||||||
StreamingRequestDto streamingRequest = new StreamingRequestDto
|
StreamingRequestDto streamingRequest = new StreamingRequestDto
|
||||||
{
|
{
|
||||||
@ -192,7 +192,7 @@ public class AudioController : BaseJellyfinApiController
|
|||||||
VideoStreamIndex = videoStreamIndex,
|
VideoStreamIndex = videoStreamIndex,
|
||||||
Context = context ?? EncodingContext.Static,
|
Context = context ?? EncodingContext.Static,
|
||||||
StreamOptions = streamOptions,
|
StreamOptions = streamOptions,
|
||||||
EnableAudioVbrEncoding = enableAudioVbrEncoding ?? true
|
EnableAudioVbrEncoding = enableAudioVbrEncoding
|
||||||
};
|
};
|
||||||
|
|
||||||
return await _audioHelper.GetAudioStream(_transcodingJobType, streamingRequest).ConfigureAwait(false);
|
return await _audioHelper.GetAudioStream(_transcodingJobType, streamingRequest).ConfigureAwait(false);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user