Skip to content

Commit

Permalink
Add option to remove OMX components from IOmxStore
Browse files Browse the repository at this point in the history
Test: vts-tradefed run vts -m VtsHalMediaOmxStoreV1_0Host

Bug: 139111743
Change-Id: Ica1e1619f53615f5e2363f7e7aec1831649631e2
  • Loading branch information
Pawin Vongmasa committed Aug 14, 2019
1 parent 9c6f37f commit 847eaf4
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 847eaf4

Please sign in to comment.