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

Commit 0fb43efc authored by Wei Jia's avatar Wei Jia
Browse files

ACodec: notify resolution change earlier for tunneled mode.

Bug: 21906777
Change-Id: I73c265ba8e76b8a9cddcfdec28e783e30c52acaf
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 (mCodec->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()) {