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

Commit f5fee046 authored by Andy Hung's avatar Andy Hung Committed by Android Git Automerger
Browse files

am 9a922554: Merge "MediaCodec: handle a spontaneous error while configuring" into mnc-dev

* commit '9a922554':
  MediaCodec: handle a spontaneous error while configuring
parents bd84e1ef 9a922554
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -1160,6 +1160,12 @@ void MediaCodec::onMessageReceived(const sp<AMessage> &msg) {

                case CodecBase::kWhatComponentConfigured:
                {
                    if (mState == UNINITIALIZED || mState == INITIALIZED) {
                        // In case a kWhatError message came in and replied with error,
                        // we log a warning and ignore.
                        ALOGW("configure interrupted by error, current state %d", mState);
                        break;
                    }
                    CHECK_EQ(mState, CONFIGURING);

                    // reset input surface flag