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

Commit 3be5aad4 authored by Andreas Huber's avatar Andreas Huber Committed by Android (Google) Code Review
Browse files

Merge "Make sure we return input/output buffers to the codec not just while"

parents ed07dafc b5ef6e5d
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -577,7 +577,7 @@ void MediaCodec::onMessageReceived(const sp<AMessage> &msg) {
                {
                    /* size_t index = */updateBuffers(kPortIndexInput, msg);

                    if (mState == FLUSHING) {
                    if (mState == FLUSHING || mState == STOPPING) {
                        returnBuffersToCodecOnPort(kPortIndexInput);
                        break;
                    }
@@ -596,7 +596,7 @@ void MediaCodec::onMessageReceived(const sp<AMessage> &msg) {
                {
                    /* size_t index = */updateBuffers(kPortIndexOutput, msg);

                    if (mState == FLUSHING) {
                    if (mState == FLUSHING || mState == STOPPING) {
                        returnBuffersToCodecOnPort(kPortIndexOutput);
                        break;
                    }