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

Commit adc857e8 authored by James Dong's avatar James Dong Committed by Android (Google) Code Review
Browse files

Merge "Don't overwrite pending port setting change if there are more than one...

Merge "Don't overwrite pending port setting change if there are more than one port setting change event."
parents 71b63e3e 97857479
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -2442,8 +2442,10 @@ void OMXCodec::onCmdComplete(OMX_COMMANDTYPE cmd, OMX_U32 data) {
                // Don't notify clients if the output port settings change
                // wasn't of importance to them, i.e. it may be that just the
                // number of buffers has changed and nothing else.
                mOutputPortSettingsHaveChanged =
                    formatHasNotablyChanged(oldOutputFormat, mOutputFormat);
                bool formatChanged = formatHasNotablyChanged(oldOutputFormat, mOutputFormat);
                if (!mOutputPortSettingsHaveChanged) {
                    mOutputPortSettingsHaveChanged = formatChanged;
                }

                enablePortAsync(portIndex);