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

* commit '826bf9b63f69f4e19011f7f72b022b50b89fca49':
  media: parse max-concurrent-instances.
This commit is contained in:
Ronghua Wu
2015-06-25 22:27:32 +00:00
committed by Android Git Automerger

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);