OMX_ERRORTYPE unload_component(HTEST *hTest) { OMX_FreeHandle(hTest->hComponent); MSG sMsg; sMsg.type = EXIT; hTest->pMsgQ->Add(&sMsg); fsl_osal_thread_destroy(hTest->pThreadId); return OMX_ErrorNone; }
OMX_ERRORTYPE unload_components(HTEST *hTest) { OMX_U32 i; for(i=0; i<hTest->nComponents; i++) hTest->component[i].hComponent->ComponentDeInit(hTest->component[i].hComponent); fsl_osal_thread_destroy(hTest->pThreadId); return OMX_ErrorNone; }
OMX_ERRORTYPE GMSubtitlePlayer::DeInit() { if(pThread) { fsl_osal_thread_destroy(pThread); pThread = NULL; } if(Cond != NULL) { fsl_osal_cond_destroy(Cond); Cond = NULL; } if(pSem) { fsl_osal_sem_destroy(pSem); pSem = NULL; } return OMX_ErrorNone; }
OMX_ERRORTYPE unload_component(HTEST *hTest) { OMX_FreeHandle(hTest->hComponent); fsl_osal_thread_destroy(hTest->pThreadId); return OMX_ErrorNone; }