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

Commit be9587cd authored by Robert Shih's avatar Robert Shih
Browse files

libmediadrm: use AServiceManager_waitForService for lazy HALs

Bug: 221078453
Test: atest GtsMediaTestCases
Change-Id: I0155b762bf0150474eaa4cbd833d7519bcd03cf1
parent b0ec81c7
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -177,7 +177,7 @@ std::vector<std::shared_ptr<IDrmFactoryAidl>> makeDrmFactoriesAidl() {
        [](const char* instance, void* context) {
            auto fullName = std::string(IDrmFactoryAidl::descriptor) + "/" + std::string(instance);
            auto factory = IDrmFactoryAidl::fromBinder(
                    ::ndk::SpAIBinder(AServiceManager_getService(fullName.c_str())));
                    ::ndk::SpAIBinder(AServiceManager_waitForService(fullName.c_str())));
            if (factory == nullptr) {
                ALOGE("not found IDrmFactory. Instance name:[%s]", fullName.c_str());
                return;