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

Commit f2c66201 authored by Pawin Vongmasa's avatar Pawin Vongmasa Committed by android-build-merger
Browse files

Add option to remove OMX components from IOmxStore

am: 847eaf44

Change-Id: I24c9f79fc21ac6c4f8cd31cc59ad90d4168b0eae
parents 58887211 847eaf44
Loading
Loading
Loading
Loading
+3 −1
Original line number Original line Diff line number Diff line
@@ -21,6 +21,7 @@
#include "minijail.h"
#include "minijail.h"


#include <binder/ProcessState.h>
#include <binder/ProcessState.h>
#include <cutils/properties.h>
#include <hidl/HidlTransportSupport.h>
#include <hidl/HidlTransportSupport.h>
#include <media/stagefright/omx/1.0/Omx.h>
#include <media/stagefright/omx/1.0/Omx.h>
#include <media/stagefright/omx/1.0/OmxStore.h>
#include <media/stagefright/omx/1.0/OmxStore.h>
@@ -57,7 +58,8 @@ int main(int argc __unused, char** argv)
    } else {
    } else {
        LOG(INFO) << "IOmx HAL service created.";
        LOG(INFO) << "IOmx HAL service created.";
    }
    }
    sp<IOmxStore> omxStore = new implementation::OmxStore(omx);
    sp<IOmxStore> omxStore = new implementation::OmxStore(
            property_get_int64("vendor.media.omx", 1) ? omx : nullptr);
    if (omxStore == nullptr) {
    if (omxStore == nullptr) {
        LOG(ERROR) << "Cannot create IOmxStore HAL service.";
        LOG(ERROR) << "Cannot create IOmxStore HAL service.";
    } else if (omxStore->registerAsService() != OK) {
    } else if (omxStore->registerAsService() != OK) {