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

Commit 3a31de26 authored by Wonsik Kim's avatar Wonsik Kim
Browse files

stagefright: limit software renderer for actual OMX components

Bug: 111605816
Test: atest CtsMediaTestCases:VideoEncoderTest
Change-Id: I1ad7267f823abec99b73093be04e5ec38ff3c162
parent 72714f99
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -1943,7 +1943,9 @@ void MediaCodec::onMessageReceived(const sp<AMessage> &msg) {
                        mAnalyticsItem->setCString(kCodecCodec, mComponentName.c_str());
                    }

                    if (mComponentName.startsWith("OMX.google.")) {
                    const char *owner = mCodecInfo->getOwnerName();
                    if (mComponentName.startsWith("OMX.google.")
                            && (owner == nullptr || strncmp(owner, "default", 8) == 0)) {
                        mFlags |= kFlagUsesSoftwareRenderer;
                    } else {
                        mFlags &= ~kFlagUsesSoftwareRenderer;