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

Commit c250cdc2 authored by Treehugger Robot's avatar Treehugger Robot Committed by Automerger Merge Worker
Browse files

Merge "MediaCodec: manage resources for sw video codecs" am: e52c0ff9 am: 936c299d

parents bcaecaa8 936c299d
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)));
                    }