mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-03-02 08:23:04 +00:00
Apply suggestions from code review
Co-authored-by: Claus Vium <cvium@users.noreply.github.com>
This commit is contained in:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user