summaryrefslogtreecommitdiffstats
path: root/media/libstagefright/ACodec.cpp
diff options
context:
space:
mode:
authorLinux Build Service Account <lnxbuild@localhost>2015-10-12 20:08:52 -0700
committerGerrit - the friendly Code Review server <code-review@localhost>2015-10-12 20:08:52 -0700
commit0aeb8e22fed35a28534211e073edb7d80413d8cb (patch)
treefc8a9498b45b2efc7c6e8d9237216ccd4ee84671 /media/libstagefright/ACodec.cpp
parentbae519fff60ceb8ceeb22c8d322cb8073e2a43d0 (diff)
parentd33b158b5ed85a6e43bf79c646cac72adce3c04f (diff)
downloadframeworks_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.cpp1
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();