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

Commit 2235b4ef authored by Lajos Molnar's avatar Lajos Molnar
Browse files

MediaCodec: remove legacy-setsurface experiment from setOutputSurface

This belongs to NuPlayerDecoder.

Bug: 20894667
Change-Id: Iac52a51834e0a11ff206c6b03ea56ceda9c8ae61
parent 9ad9e747
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -4542,9 +4542,7 @@ bool ACodec::BaseState::onMessageReceived(const sp<AMessage> &msg) {
            sp<RefBase> obj;
            CHECK(msg->findObject("surface", &obj));

            status_t err =
                ADebug::isExperimentEnabled("legacy-setsurface") ? BAD_VALUE :
                        mCodec->handleSetSurface(static_cast<Surface *>(obj.get()));
            status_t err = mCodec->handleSetSurface(static_cast<Surface *>(obj.get()));

            sp<AMessage> response = new AMessage;
            response->setInt32("err", err);