diff --git a/services/mediacodec/main_codecservice.cpp b/services/mediacodec/main_codecservice.cpp index f668c3381b..6a82b1b6b8 100644 --- a/services/mediacodec/main_codecservice.cpp +++ b/services/mediacodec/main_codecservice.cpp @@ -21,6 +21,7 @@ #include "minijail.h" #include +#include #include #include #include @@ -57,7 +58,8 @@ int main(int argc __unused, char** argv) } else { LOG(INFO) << "IOmx HAL service created."; } - sp omxStore = new implementation::OmxStore(omx); + sp 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) {