Skip to content

Commit

Permalink
Add option to remove OMX components from IOmxStore
Browse files Browse the repository at this point in the history
am: 847eaf4

Change-Id: I4e89d3dc810ab9077abb043ef3a3c3771ede0a27
  • Loading branch information
Pawin Vongmasa authored and android-build-merger committed Aug 16, 2019
2 parents 5f55524 + 847eaf4 commit 90f56b7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion services/mediacodec/main_codecservice.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
#include "minijail.h"

#include <binder/ProcessState.h>
#include <cutils/properties.h>
#include <hidl/HidlTransportSupport.h>
#include <media/stagefright/omx/1.0/Omx.h>
#include <media/stagefright/omx/1.0/OmxStore.h>
Expand Down Expand Up @@ -57,7 +58,8 @@ int main(int argc __unused, char** argv)
} else {
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) {
LOG(ERROR) << "Cannot create IOmxStore HAL service.";
} else if (omxStore->registerAsService() != OK) {
Expand Down

0 comments on commit 90f56b7

Please sign in to comment.