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

Commit 118e7ff2 authored by Lajos Molnar's avatar Lajos Molnar Committed by Android (Google) Code Review
Browse files

Merge "MediaCodec: move to UNINITIALIZED state on codec error"

parents 2ade3000 ec5f7cc4
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -603,6 +603,7 @@ void MediaCodec::onMessageReceived(const sp<AMessage> &msg) {
                            postActivityNotificationIfPossible();

                            cancelPendingDequeueOperations();
                            setState(UNINITIALIZED);
                            break;
                        }

@@ -612,6 +613,7 @@ void MediaCodec::onMessageReceived(const sp<AMessage> &msg) {

                            mFlags |= kFlagStickyError;
                            postActivityNotificationIfPossible();
                            setState(UNINITIALIZED);
                            break;
                        }
                    }