Merge "media: parse max-concurrent-instances." into mnc-dev

This commit is contained in:
Ronghua Wu
2015-06-25 22:14:57 +00:00
committed by Android (Google) Code Review

View File

@@ -705,6 +705,9 @@ public final class MediaCodecInfo {
int maxInstances = Utils.parseIntSafely(
map.get("max-supported-instances"), mMaxSupportedInstances);
// TODO: replace all max-supported-instances with max-concurrent-instances.
maxInstances = Utils.parseIntSafely(
map.get("max-concurrent-instances"), maxInstances);
mMaxSupportedInstances =
Range.create(1, MAX_SUPPORTED_INSTANCES_LIMIT).clamp(maxInstances);