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

Commit cf6a4ba5 authored by Ronghua Wu's avatar Ronghua Wu
Browse files

media: parse max-concurrent-instances.

Bug: 22089269
Change-Id: I2b0af7c5c6a309c8396b595ea54b899451239b18
parent 616f035b
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);