Apply suggestions from code review

Co-authored-by: Claus Vium <cvium@users.noreply.github.com>
pull/7947/head
Nyanmisaka 2 years ago committed by GitHub
parent 477b922e4a
commit 0b6fbebf72
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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…
Cancel
Save