From 8ce0b472a64ee74f08ecc73501ece6c19599d0a4 Mon Sep 17 00:00:00 2001 From: Shivaprasad Hongal Date: Mon, 7 Apr 2014 10:17:00 -0700 Subject: 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 --- media/libstagefright/omx/OMXNodeInstance.cpp | 1 + 1 file changed, 1 insertion(+) 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"); -- cgit v1.1