mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-04-24 05:57:20 -04:00
Apply suggestions from code review
Co-authored-by: Cody Robibero <cody@robibe.ro>
This commit is contained in:
parent
4b1256e67b
commit
5386f06095
1 changed files with 2 additions and 3 deletions
|
@ -776,9 +776,8 @@ namespace MediaBrowser.Model.Dlna
|
|||
if (directVideoCodec != null)
|
||||
{
|
||||
// merge directVideoCodec to videoCodecs
|
||||
videoCodecs = videoCodecs != null && videoCodecs.Length > 0
|
||||
? videoCodecs.Union(new[] { directVideoCodec }).ToArray()
|
||||
: new[] { directVideoCodec };
|
||||
Array.Resize(ref videoCodecs, (videoCodecs?.Length ?? 0) + 1);
|
||||
videoCodecs[^1] = directVideoCodec;
|
||||
}
|
||||
|
||||
playlistItem.VideoCodecs = videoCodecs;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue