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

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

Merge "resource_manager: fix cross-type reclaim" am: 5307c587 am: 972e3346 am: 8916c8fe

parents 5d946def 8916c8fe
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -696,11 +696,11 @@ Status ResourceManagerService::reclaimResource(int32_t callingPid,
        if (clients.size() == 0) {
            // if we are here, run the fourth pass to free one codec with the different type.
            if (secureCodec != NULL) {
                MediaResource temp(MediaResource::Type::kNonSecureCodec, 1);
                MediaResource temp(MediaResource::Type::kNonSecureCodec, secureCodec->subType, 1);
                getClientForResource_l(callingPid, &temp, &clients);
            }
            if (nonSecureCodec != NULL) {
                MediaResource temp(MediaResource::Type::kSecureCodec, 1);
                MediaResource temp(MediaResource::Type::kSecureCodec, nonSecureCodec->subType, 1);
                getClientForResource_l(callingPid, &temp, &clients);
            }
        }