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

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

Merge "resource_manager: fix cross-type reclaim"

parents 0e6a9b93 b3639012
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -671,11 +671,11 @@ Status ResourceManagerService::reclaimResource(
        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);
            }
        }