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

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

am: f424b715

Change-Id: I0ab3d07688dacf4ae1b3942e0611e97c6cbbb2fb
parents ab091462 f424b715
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());
        }