diff options
author | Ronghua Wu <ronghuawu@google.com> | 2015-06-25 14:13:40 -0700 |
---|---|---|
committer | Ronghua Wu <ronghuawu@google.com> | 2015-06-25 14:13:40 -0700 |
commit | cf6a4ba5a4aed486b61b87597aa6572d41213ba2 (patch) | |
tree | de046e8c17774a80a0ca734e87652fbaa01fb0d7 | |
parent | 616f035bc9a2d9855feb2348d2b732a18ebdbffb (diff) | |
download | frameworks_base-cf6a4ba5a4aed486b61b87597aa6572d41213ba2.zip frameworks_base-cf6a4ba5a4aed486b61b87597aa6572d41213ba2.tar.gz frameworks_base-cf6a4ba5a4aed486b61b87597aa6572d41213ba2.tar.bz2 |
media: parse max-concurrent-instances.
Bug: 22089269
Change-Id: I2b0af7c5c6a309c8396b595ea54b899451239b18
-rw-r--r-- | media/java/android/media/MediaCodecInfo.java | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/media/java/android/media/MediaCodecInfo.java b/media/java/android/media/MediaCodecInfo.java index 6c26220..28d0713 100644 --- a/media/java/android/media/MediaCodecInfo.java +++ b/media/java/android/media/MediaCodecInfo.java @@ -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); |