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

Commit 9e43a105 authored by Marco Nelissen's avatar Marco Nelissen Committed by Gerrit Code Review
Browse files

Merge "stagefright: fix finding hardware codec"

parents 50d06c88 ca4c68f2
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -1165,7 +1165,9 @@ void MediaCodecList::findMatchingCodecs(
        CHECK(info != NULL);
        AString componentName = info->getCodecName();

        if (!((flags & kHardwareCodecsOnly) && !isSoftwareCodec(componentName))) {
        if ((flags & kHardwareCodecsOnly) && isSoftwareCodec(componentName)) {
            ALOGV("skipping SW codec '%s'", componentName.c_str());
        } else {
            matches->push(componentName);
            ALOGV("matching '%s'", componentName.c_str());
        }