|
|
@ -805,9 +805,13 @@ namespace MediaBrowser.Model.Dlna
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
var transcodingProfiles = options.Profile.TranscodingProfiles
|
|
|
|
var transcodingProfiles = options.Profile.TranscodingProfiles
|
|
|
|
.Where(i => !item.UseMostCompatibleTranscodingProfile || string.Equals(i.Container, "ts", StringComparison.OrdinalIgnoreCase))
|
|
|
|
|
|
|
|
.Where(i => i.Type == playlistItem.MediaType && i.Context == options.Context);
|
|
|
|
.Where(i => i.Type == playlistItem.MediaType && i.Context == options.Context);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (item.UseMostCompatibleTranscodingProfile)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
transcodingProfiles = transcodingProfiles.Where(i => string.Equals(i.Container, "ts", StringComparison.OrdinalIgnoreCase));
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if (options.AllowVideoStreamCopy)
|
|
|
|
if (options.AllowVideoStreamCopy)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
// prefer direct copy profile
|
|
|
|
// prefer direct copy profile
|
|
|
|