diff options
author | Linux Build Service Account <lnxbuild@localhost> | 2015-10-12 20:08:52 -0700 |
---|---|---|
committer | Gerrit - the friendly Code Review server <code-review@localhost> | 2015-10-12 20:08:52 -0700 |
commit | 0aeb8e22fed35a28534211e073edb7d80413d8cb (patch) | |
tree | fc8a9498b45b2efc7c6e8d9237216ccd4ee84671 /media/libstagefright/ACodec.cpp | |
parent | bae519fff60ceb8ceeb22c8d322cb8073e2a43d0 (diff) | |
parent | d33b158b5ed85a6e43bf79c646cac72adce3c04f (diff) | |
download | frameworks_av-0aeb8e22fed35a28534211e073edb7d80413d8cb.zip frameworks_av-0aeb8e22fed35a28534211e073edb7d80413d8cb.tar.gz frameworks_av-0aeb8e22fed35a28534211e073edb7d80413d8cb.tar.bz2 |
Merge "Stagefright: Transition to uninitialized state after freeing node"
Diffstat (limited to 'media/libstagefright/ACodec.cpp')
-rw-r--r-- | media/libstagefright/ACodec.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/media/libstagefright/ACodec.cpp b/media/libstagefright/ACodec.cpp index 78ab3db..a132637 100644 --- a/media/libstagefright/ACodec.cpp +++ b/media/libstagefright/ACodec.cpp @@ -4615,6 +4615,7 @@ bool ACodec::BaseState::onMessageReceived(const sp<AMessage> &msg) { ALOGI("[%s] forcing the release of codec", mCodec->mComponentName.c_str()); status_t err = mCodec->mOMX->freeNode(mCodec->mNode); + mCodec->changeState(mCodec->mUninitializedState); ALOGE_IF("[%s] failed to release codec instance: err=%d", mCodec->mComponentName.c_str(), err); sp<AMessage> notify = mCodec->mNotify->dup(); |