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

Commit 897b3751 authored by Girish's avatar Girish
Browse files

MediaCodec: manage resources for sw video codecs

Bug: 201748251
Test: atest ResourceObserverNativeTest
Change-Id: I2b830efee90f0f6c390f7ef7d96926013f295ab3
parent 53e5651e
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -3355,8 +3355,8 @@ void MediaCodec::onMessageReceived(const sp<AMessage> &msg) {
                    MediaCodecInfo::Attributes attr = mCodecInfo
                            ? mCodecInfo->getAttributes()
                            : MediaCodecInfo::Attributes(0);
                    if (!(attr & MediaCodecInfo::kFlagIsSoftwareOnly)) {
                        // software codec is currently ignored.
                    if (mDomain == DOMAIN_VIDEO || !(attr & MediaCodecInfo::kFlagIsSoftwareOnly)) {
                        // software audio codecs are currently ignored.
                        mResourceManagerProxy->addResource(MediaResource::CodecResource(
                            mFlags & kFlagIsSecure, toMediaResourceSubType(mDomain)));
                    }