aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Api/Playback/BaseStreamingService.cs
diff options
context:
space:
mode:
authorLuke Pulverenti <luke.pulverenti@gmail.com>2014-11-11 23:51:40 -0500
committerLuke Pulverenti <luke.pulverenti@gmail.com>2014-11-11 23:51:40 -0500
commit4f5c7687042148507d5cedfcec81ab355f478f19 (patch)
tree8b90ef0f259ffcb0f4c3b27bb9014e1d89a6ee9a /MediaBrowser.Api/Playback/BaseStreamingService.cs
parent0dfac392e74c0c0688346eedf728eb4d68df68ec (diff)
added more card layouts
Diffstat (limited to 'MediaBrowser.Api/Playback/BaseStreamingService.cs')
-rw-r--r--MediaBrowser.Api/Playback/BaseStreamingService.cs15
1 files changed, 15 insertions, 0 deletions
diff --git a/MediaBrowser.Api/Playback/BaseStreamingService.cs b/MediaBrowser.Api/Playback/BaseStreamingService.cs
index c716ee150..21c4a3dff 100644
--- a/MediaBrowser.Api/Playback/BaseStreamingService.cs
+++ b/MediaBrowser.Api/Playback/BaseStreamingService.cs
@@ -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;
}