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

Commit 98a421bf authored by Wei Jia's avatar Wei Jia
Browse files

ACodec: send format change for video tunneled mode when omx has output crop change.

Bug: 21906777
Change-Id: Id6674a76e8f2620dd24bac9210cf8885fbd384bb
parent 7406bc75
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -6374,6 +6374,11 @@ bool ACodec::ExecutingState::onOMXEvent(
                mCodec->changeState(mCodec->mOutputPortSettingsChangedState);
            } else if (data2 == OMX_IndexConfigCommonOutputCrop) {
                mCodec->mSentFormat = false;

                if (mCodec->mTunneled) {
                    sp<AMessage> dummy = new AMessage(kWhatOutputBufferDrained, mCodec);
                    mCodec->sendFormatChange(dummy);
                }
            } else {
                ALOGV("[%s] OMX_EventPortSettingsChanged 0x%08x",
                     mCodec->mComponentName.c_str(), data2);