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

Commit 932aab60 authored by Steven Moreland's avatar Steven Moreland Committed by gitbuildkicker
Browse files

OMX: don't respect binderization toggle.

Test: pass
Change-Id: I495c71b0a39ae8423e109219f8f5e96812fe2aa1
(cherry picked from commit 373580e1)
parent 2b528dcf
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -910,7 +910,7 @@ int main(int argc, char **argv) {
        sp<IOMX> omx;
        int32_t trebleOmx = property_get_int32("persist.media.treble_omx", -1);
        if ((trebleOmx == 1) || ((trebleOmx == -1) &&
                property_get_bool("persist.hal.binderization", 0))) {
                property_get_bool("omx.binderization", 0))) {
            using namespace ::android::hardware::media::omx::V1_0;
            sp<IOmx> tOmx = IOmx::getService();

+1 −1
Original line number Diff line number Diff line
@@ -738,7 +738,7 @@ sp<MediaPlayerBase> MediaPlayerService::Client::setDataSource_pre(

    int32_t trebleOmx = property_get_int32("persist.media.treble_omx", -1);
    if ((trebleOmx == 1) || ((trebleOmx == -1) &&
            property_get_bool("persist.hal.binderization", 0))) {
            property_get_bool("omx.binderization", 0))) {
        // Treble IOmx
        sp<IOmx> omx = IOmx::getService();
        if (omx == nullptr) {
+1 −1
Original line number Diff line number Diff line
@@ -452,7 +452,7 @@ status_t MediaRecorderClient::setListener(const sp<IMediaRecorderClient>& listen

    int32_t trebleOmx = property_get_int32("persist.media.treble_omx", -1);
    if ((trebleOmx == 1) || ((trebleOmx == -1) &&
            property_get_bool("persist.hal.binderization", 0))) {
            property_get_bool("omx.binderization", 0))) {
        // Treble IOmx
        sp<IOmx> omx = IOmx::getService();
        if (omx == nullptr) {
+1 −1
Original line number Diff line number Diff line
@@ -40,7 +40,7 @@ OMXClient::OMXClient() {
status_t OMXClient::connect(bool* trebleFlag) {
    int32_t trebleOmx = property_get_int32("persist.media.treble_omx", -1);
    if ((trebleOmx == 1) || ((trebleOmx == -1) &&
            property_get_bool("persist.hal.binderization", 0))) {
            property_get_bool("omx.binderization", 0))) {
        if (trebleFlag != nullptr) {
            *trebleFlag = true;
        }
+1 −1
Original line number Diff line number Diff line
@@ -80,7 +80,7 @@ status_t Harness::initCheck() const {
status_t Harness::initOMX() {
    int32_t trebleOmx = property_get_int32("persist.media.treble_omx", -1);
    if ((trebleOmx == 1) || ((trebleOmx == -1) &&
            property_get_bool("persist.hal.binderization", 0))) {
            property_get_bool("omx.binderization", 0))) {
        using namespace ::android::hardware::media::omx::V1_0;
        sp<IOmx> tOmx = IOmx::getService();
        if (tOmx == nullptr) {
Loading