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

Commit 9a922554 authored by Andy Hung's avatar Andy Hung Committed by Android (Google) Code Review
Browse files

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

parents eee9697a c6044a13
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