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

Commit 4271c82e authored by Pawin Vongmasa's avatar Pawin Vongmasa
Browse files

Make IOmx registration independent of IOmxStore

This CL allows IOmx to attempt registration even when IOmxStore fails to
register.

Test: Manual use of Camera

Bug: 37657124
Bug: 37726880
Change-Id: I108c507326ee55c17acc524233e70afa5cb5a4f0
parent 1c57d1e4
Loading
Loading
Loading
Loading
+7 −8
Original line number Diff line number Diff line
@@ -66,7 +66,7 @@ int main(int argc __unused, char** argv)
            LOG(ERROR) << "Cannot create IOmxStore HAL service.";
        } else if (omxStore->registerAsService() != OK) {
            LOG(ERROR) << "Cannot register IOmxStore HAL service.";
        } else {
        }
        sp<IOmx> omx = new implementation::Omx();
        if (omx == nullptr) {
            LOG(ERROR) << "Cannot create IOmx HAL service.";
@@ -75,7 +75,6 @@ int main(int argc __unused, char** argv)
        } else {
            LOG(INFO) << "Treble OMX service created.";
        }
        }
    } else {
        MediaCodecService::instantiate();
        LOG(INFO) << "Non-Treble OMX service created.";