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

Commit cf1f53ba authored by Lajos Molnar's avatar Lajos Molnar
Browse files

Fix: Add MediaCodecList capabilities

fix getting capability index from type

 Bug: 12065651

Change-Id: Id2bc60410a92e17c841a5dd072257bc40ad6236f
parent 2096abe9
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -868,6 +868,8 @@ status_t MediaCodecList::getCodecCapabilities(
    if (typeIndex < 0) {
        return -EINVAL;
    }
    // essentially doing valueFor without the CHECK abort
    typeIndex = mTypes.valueAt(typeIndex);

    OMXClient client;
    status_t err = client.connect();