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

Commit 7cb3aff4 authored by Wei Jia's avatar Wei Jia
Browse files

ACodec: notify resolution change earlier for tunneled mode.

Bug: 21906777
Change-Id: If8c107d4d5267173a3f2de08ec9038d3451a21d3
parent 70c1f74f
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -6504,6 +6504,11 @@ bool ACodec::OutputPortSettingsChangedState::onOMXEvent(

                mCodec->mSentFormat = false;

                if (mTunneled) {
                    sp<AMessage> dummy = new AMessage(kWhatOutputBufferDrained, mCodec);
                    mCodec->sendFormatChange(dummy);
                }

                ALOGV("[%s] Output port now reenabled.", mCodec->mComponentName.c_str());

                if (mCodec->mExecutingState->active()) {