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

Commit ec69aafe authored by Wonsik Kim's avatar Wonsik Kim
Browse files

ACodec: transition to UNINITIALIZED after force release

Bug: 37857940
Test: AuptTV
Test: adb shell am instrument -e size small -w 'android.media.cts/android.support.test.runner.AndroidJUnitRunner'
Change-Id: I583f955839d440aad96cf4bbccad05ed9e291700
parent 76e36033
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -5401,6 +5401,8 @@ bool ACodec::BaseState::onMessageReceived(const sp<AMessage> &msg) {
            ALOGE_IF("[%s] failed to release codec instance: err=%d",
                       mCodec->mComponentName.c_str(), err);
            mCodec->mCallback->onReleaseCompleted();

            mCodec->changeState(mCodec->mUninitializedState);
            break;
        }