diff options
Diffstat (limited to 'omx/audio/src/openmax_il/wbamr_enc/src/OMX_WbAmrEnc_CompThread.c')
-rw-r--r-- | omx/audio/src/openmax_il/wbamr_enc/src/OMX_WbAmrEnc_CompThread.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/omx/audio/src/openmax_il/wbamr_enc/src/OMX_WbAmrEnc_CompThread.c b/omx/audio/src/openmax_il/wbamr_enc/src/OMX_WbAmrEnc_CompThread.c index 4cac76e..3257633 100644 --- a/omx/audio/src/openmax_il/wbamr_enc/src/OMX_WbAmrEnc_CompThread.c +++ b/omx/audio/src/openmax_il/wbamr_enc/src/OMX_WbAmrEnc_CompThread.c @@ -204,10 +204,14 @@ void* WBAMRENC_CompThread(void* pThreadData) { #endif if (pComponentPrivate->bPreempted == 0) { + if(RemoveStateTransition(pComponentPrivate, OMX_TRUE) != OMX_ErrorNone) { + return OMX_ErrorUndefined; + } + pComponentPrivate->cbInfo.EventHandler( pHandle, pHandle->pApplicationPrivate, OMX_EventCmdComplete, - OMX_ErrorNone, + OMX_CommandStateSet, pComponentPrivate->curState, NULL); } else { |