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

Commit e52c0ff9 authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

Merge "MediaCodec: manage resources for sw video codecs"

parents 70d8e4ca 897b3751
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)));
                    }