Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit af13d3b0 authored by Ronghua Wu's avatar Ronghua Wu Committed by Android Git Automerger
Browse files

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

* commit '826bf9b6':
  media: parse max-concurrent-instances.
parents 4d6b7356 826bf9b6
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -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);