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

Commit 14e96d2e authored by Marco Nelissen's avatar Marco Nelissen Committed by android-build-merger
Browse files

Merge "stagefright: fix finding hardware codec" am: 9e43a105

am: cb31148c

Change-Id: Id09d8c44d1a02e0cc17d0bd75f3771cfadf43d34
parents 705b64ab cb31148c
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());
        }