mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-07-21 21:20:39 +02: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
|
@ -293,7 +293,7 @@ namespace MediaBrowser.Model.Dlna
|
||||||
}
|
}
|
||||||
|
|
||||||
var targetVideoCodecs = TargetVideoCodec;
|
var targetVideoCodecs = TargetVideoCodec;
|
||||||
var videoCodec = targetVideoCodecs.FirstOrDefault();
|
var videoCodec = targetVideoCodecs.Length == 0 ? null : targetVideoCodecs[0];
|
||||||
if (!string.IsNullOrEmpty(videoCodec))
|
if (!string.IsNullOrEmpty(videoCodec))
|
||||||
{
|
{
|
||||||
return GetOption(videoCodec, "rangetype");
|
return GetOption(videoCodec, "rangetype");
|
||||||
|
|
Loading…
Reference in a new issue