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

Commit f424b715 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

am: 14e96d2e

Change-Id: I4278f7126347c39ee890104d4aa3a852e62a3f57
parents b02a3b33 14e96d2e
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());
        }