mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-09-06 11:34:57 +02: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)
|
if (directVideoCodec != null)
|
||||||
{
|
{
|
||||||
// merge directVideoCodec to videoCodecs
|
// merge directVideoCodec to videoCodecs
|
||||||
videoCodecs = videoCodecs != null && videoCodecs.Length > 0
|
Array.Resize(ref videoCodecs, (videoCodecs?.Length ?? 0) + 1);
|
||||||
? videoCodecs.Union(new[] { directVideoCodec }).ToArray()
|
videoCodecs[^1] = directVideoCodec;
|
||||||
: new[] { directVideoCodec };
|
|
||||||
}
|
}
|
||||||
|
|
||||||
playlistItem.VideoCodecs = videoCodecs;
|
playlistItem.VideoCodecs = videoCodecs;
|
||||||
|
|
Loading…
Reference in a new issue