added more card layouts

This commit is contained in:
Luke Pulverenti
2014-11-11 23:51:40 -05:00
parent 0dfac392e7
commit 4f5c768704
11 changed files with 53 additions and 24 deletions

View File

@@ -1402,6 +1402,13 @@ namespace MediaBrowser.Api.Playback
videoRequest.Profile = val;
}
}
else if (i == 20)
{
if (videoRequest != null)
{
videoRequest.Cabac = string.Equals("true", val, StringComparison.OrdinalIgnoreCase);
}
}
}
}
@@ -1867,6 +1874,14 @@ namespace MediaBrowser.Api.Playback
}
}
if (request.Cabac.HasValue && request.Cabac.Value)
{
if (videoStream.IsCabac.HasValue && !videoStream.IsCabac.Value)
{
return false;
}
}
return request.EnableAutoStreamCopy;
}