fix application of params

This commit is contained in:
Luke Pulverenti 2017-09-22 16:38:59 -04:00
parent c25db09e37
commit f3120dbee9

View File

@ -796,8 +796,11 @@ namespace MediaBrowser.Model.Dlna
{
foreach (var transcodingVideoCodec in ContainerProfile.SplitValue(transcodingProfile.VideoCodec))
{
ApplyTranscodingConditions(playlistItem, i.Conditions, transcodingVideoCodec, !isFirstAppliedCodecProfile);
isFirstAppliedCodecProfile = false;
if (i.ContainsCodec(transcodingVideoCodec, transcodingProfile.Container))
{
ApplyTranscodingConditions(playlistItem, i.Conditions, transcodingVideoCodec, !isFirstAppliedCodecProfile);
isFirstAppliedCodecProfile = false;
}
}
}
}