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

Commit b438123f authored by Chong Zhang's avatar Chong Zhang Committed by Android Git Automerger
Browse files

am 9574c274: am 5d2c5fcb: Merge "MediaCodec: resume codec if state is FLUSHED...

am 9574c274: am 5d2c5fcb: Merge "MediaCodec: resume codec if state is FLUSHED in async mode" into lmp-mr1-dev

* commit '9574c274':
  MediaCodec: resume codec if state is FLUSHED in async mode
parents 51a7a415 9574c274
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -1326,8 +1326,10 @@ void MediaCodec::onMessageReceived(const sp<AMessage> &msg) {
            CHECK(msg->senderAwaitsResponse(&replyID));

            if (mState == FLUSHED) {
                setState(STARTED);
                mCodec->signalResume();
                PostReplyWithError(replyID, OK);
                break;
            } else if (mState != CONFIGURED) {
                PostReplyWithError(replyID, INVALID_OPERATION);
                break;