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

Commit 56b6ad7a authored by Hangyu Kuang's avatar Hangyu Kuang
Browse files

Revert "Conditional start the media.transcoding service."

Revert^2 "trancoding: lazy-start transcoding service"

db10bbab0890a233e76c259cb60e9c02016186c2

Bug: 187271658
Test: atest MediaTranscodeManagerTest; unit tests
Change-Id: I0a5395ea1c4ea54c404fd29c1fddc177313e2771
parent 733fa434
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -35,7 +35,6 @@ cc_binary {
        "android.hardware.media.omx@1.0",
        "libandroidicu",
        "libfmq",
        "libbase",
        "libbinder",
        "libhidlbase",
        "liblog",
+0 −7
Original line number Diff line number Diff line
@@ -18,7 +18,6 @@
#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>
@@ -43,12 +42,6 @@ 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();