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: Claus Vium <cvium@users.noreply.github.com>
This commit is contained in:
parent
477b922e4a
commit
0b6fbebf72
1 changed files with 1 additions and 1 deletions
|
@ -293,7 +293,7 @@ namespace MediaBrowser.Model.Dlna
|
|||
}
|
||||
|
||||
var targetVideoCodecs = TargetVideoCodec;
|
||||
var videoCodec = targetVideoCodecs.FirstOrDefault();
|
||||
var videoCodec = targetVideoCodecs.Length == 0 ? null : targetVideoCodecs[0];
|
||||
if (!string.IsNullOrEmpty(videoCodec))
|
||||
{
|
||||
return GetOption(videoCodec, "rangetype");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue