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

Commit 2e57b535 authored by Zimuzo Ezeozue's avatar Zimuzo Ezeozue
Browse files

Revert^4 "Conditional start the media.transcoding service."

56b6ad7a

Bug: 193008207
Change-Id: I4281ab7a7e30f3b719227f1f04d0ea4905f72fee
parent 2a3ca76a
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -35,6 +35,7 @@ cc_binary {
        "android.hardware.media.omx@1.0",
        "libandroidicu",
        "libfmq",
        "libbase",
        "libbinder",
        "libhidlbase",
        "liblog",
+7 −0
Original line number Diff line number Diff line
@@ -18,6 +18,7 @@
#define LOG_TAG "mediaserver"
//#define LOG_NDEBUG 0

#include <android-base/properties.h>
#include <binder/IPCThreadState.h>
#include <binder/ProcessState.h>
#include <binder/IServiceManager.h>
@@ -42,6 +43,12 @@ int main(int argc __unused, char **argv __unused)
    ResourceManagerService::instantiate();
    registerExtensions();
    ::android::hardware::configureRpcThreadpool(16, false);

    if (!android::base::GetBoolProperty("ro.config.low_ram", false)) {
        // Start the media.transcoding service if the device is not low ram
        // device.
        android::base::SetProperty("ctl.start", "media.transcoding");
    }
    ProcessState::self()->startThreadPool();
    IPCThreadState::self()->joinThreadPool();
    ::android::hardware::joinRpcThreadpool();