The Free Software Media System - Server Backend & API
remove audio channel limit from transcoding conditions
Luke Pulverenti8030370cfad2
diff --git a/MediaBrowser.Api/Playback/BaseStreamingService.cs b/MediaBrowser.Api/Playback/BaseStreamingService.csindex a05a84b983..b9f4473c60 100644--- a/MediaBrowser.Api/Playback/BaseStreamingService.cs+++ b/MediaBrowser.Api/Playback/BaseStreamingService.cs@@ -893,12 +893,9 @@ namespace MediaBrowser.Api.PlaybackresultChannels = Math.Min(request.MaxAudioChannels.Value, channelLimit);}- if (resultChannels.HasValue && !string.Equals(codec, "copy", StringComparison.OrdinalIgnoreCase))+ if (request.TranscodingMaxAudioChannels.HasValue && !string.Equals(codec, "copy", StringComparison.OrdinalIgnoreCase)){- if (request.TranscodingMaxAudioChannels.HasValue)- {- resultChannels = Math.Min(request.TranscodingMaxAudioChannels.Value, resultChannels.Value);- }+ resultChannels = Math.Min(request.TranscodingMaxAudioChannels.Value, resultChannels ?? inputChannels ?? request.TranscodingMaxAudioChannels.Value);}return resultChannels ?? request.AudioChannels;