Apply suggestions from code review

Co-authored-by: Claus Vium <cvium@users.noreply.github.com>
This commit is contained in:
Nyanmisaka 2022-06-17 16:49:16 +08:00 committed by GitHub
parent 477b922e4a
commit 0b6fbebf72
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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");