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

Commit 5605e304 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Automerger Merge Worker
Browse files

Merge "OMX: Hide OMX components if vendor.media.omx is 0" into rvc-dev am:...

Merge "OMX: Hide OMX components if vendor.media.omx is 0" into rvc-dev am: 38e65911 am: 52798460

Change-Id: Ica5bd3f67a10b96ac4daf01b9abdfab3f947c59e
parents 55470ea1 52798460
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -16,6 +16,7 @@

//#define LOG_NDEBUG 0
#define LOG_TAG "OMXMaster"
#include <android-base/properties.h>
#include <utils/Log.h>

#include <media/stagefright/omx/OMXMaster.h>
@@ -67,6 +68,10 @@ void OMXMaster::addPlatformPlugin() {
}

void OMXMaster::addPlugin(const char *libname) {
    if (::android::base::GetIntProperty("vendor.media.omx", int64_t(1)) == 0) {
        return;
    }

    void *libHandle = android_load_sphal_library(libname, RTLD_NOW);

    if (libHandle == NULL) {