mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-06-17 13:10:28 +01:00
sync updates
This commit is contained in:
@@ -374,9 +374,17 @@ namespace MediaBrowser.Model.Dlna
|
||||
MediaStream stream = TargetAudioStream;
|
||||
int? streamChannels = stream == null ? null : stream.Channels;
|
||||
|
||||
return MaxAudioChannels.HasValue && !IsDirectStream
|
||||
? (streamChannels.HasValue ? Math.Min(MaxAudioChannels.Value, streamChannels.Value) : MaxAudioChannels.Value)
|
||||
: streamChannels;
|
||||
if (MaxAudioChannels.HasValue && !IsDirectStream)
|
||||
{
|
||||
if (streamChannels.HasValue)
|
||||
{
|
||||
return Math.Min(MaxAudioChannels.Value, streamChannels.Value);
|
||||
}
|
||||
|
||||
return MaxAudioChannels.Value;
|
||||
}
|
||||
|
||||
return streamChannels;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user