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

Commit af7d7370 authored by Wei Jia's avatar Wei Jia Committed by Android (Google) Code Review
Browse files

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

Merge "ACodec: send format change for video tunneled mode when omx has output crop change." into mnc-dev
parents 0805add7 98a421bf
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);