summaryrefslogtreecommitdiffstats
path: root/media/libstagefright/omx/OMXNodeInstance.cpp
diff options
context:
space:
mode:
authorShivaprasad Hongal <shongal@codeaurora.org>2014-04-07 10:17:00 -0700
committerLinux Build Service Account <lnxbuild@localhost>2015-10-06 03:24:07 -0600
commit8ce0b472a64ee74f08ecc73501ece6c19599d0a4 (patch)
tree528594a8c98c8d60fcf349f307d3dbd8711e57ca /media/libstagefright/omx/OMXNodeInstance.cpp
parent60ddf05ca2408ef9d1d041cc06426ae6eac93d92 (diff)
downloadframeworks_av-8ce0b472a64ee74f08ecc73501ece6c19599d0a4.zip
frameworks_av-8ce0b472a64ee74f08ecc73501ece6c19599d0a4.tar.gz
frameworks_av-8ce0b472a64ee74f08ecc73501ece6c19599d0a4.tar.bz2
libstagefright/omx: Fix logic to handle dead observers.
OMXNodeInstance freeNode tries to tear down OMX component if not in OMX_StateLoaded. It handles all other states except OMX_StatePause. This change adds OMX_StatePause handling. Change-Id: I3bae2015c57b932186069756490c9bdf1f93eea4
Diffstat (limited to 'media/libstagefright/omx/OMXNodeInstance.cpp')
-rw-r--r--media/libstagefright/omx/OMXNodeInstance.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/media/libstagefright/omx/OMXNodeInstance.cpp b/media/libstagefright/omx/OMXNodeInstance.cpp
index 9f1c5d8..3e1de02 100644
--- a/media/libstagefright/omx/OMXNodeInstance.cpp
+++ b/media/libstagefright/omx/OMXNodeInstance.cpp
@@ -278,6 +278,7 @@ status_t OMXNodeInstance::freeNode(OMXMaster *master) {
OMX_STATETYPE state;
CHECK_EQ(OMX_GetState(mHandle, &state), OMX_ErrorNone);
switch (state) {
+ case OMX_StatePause:
case OMX_StateExecuting:
{
ALOGV("forcing Executing->Idle");