diff options
author | SeungBeom Kim <sbcrux.kim@samsung.com> | 2010-10-18 10:58:07 -0700 |
---|---|---|
committer | Andreas Huber <andih@google.com> | 2010-10-18 12:02:17 -0700 |
commit | 006c9c899bf466353f62d27d5b591b2b8b6d210b (patch) | |
tree | 6983266baf65c31591ac9d6df2d5da70a2d01efa /sec_mm/sec_omx | |
parent | 6dbcf81abac113ddef7543cf0083035d03a615f8 (diff) | |
download | device_samsung_crespo-006c9c899bf466353f62d27d5b591b2b8b6d210b.zip device_samsung_crespo-006c9c899bf466353f62d27d5b591b2b8b6d210b.tar.gz device_samsung_crespo-006c9c899bf466353f62d27d5b591b2b8b6d210b.tar.bz2 |
SEC_OMX SEC_OMX_ComponentStateSet API Bug Fix
call SEC_OSAL_SemaphoreTerminate Bug in
(OMX_StateIdle to OMX_StateLoaded) and
(OMX_StateLoaded to OMX_StateIdle)
Change-Id: I4c79a861392bf07aa40273ba2cc69df5ef518037
Signed-off-by: SeungBeom Kim <sbcrux.kim@samsung.com>
Diffstat (limited to 'sec_mm/sec_omx')
-rw-r--r-- | sec_mm/sec_omx/sec_omx_component/common/SEC_OMX_Basecomponent.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sec_mm/sec_omx/sec_omx_component/common/SEC_OMX_Basecomponent.c b/sec_mm/sec_omx/sec_omx_component/common/SEC_OMX_Basecomponent.c index 7bc6074..399be03 100644 --- a/sec_mm/sec_omx/sec_omx_component/common/SEC_OMX_Basecomponent.c +++ b/sec_mm/sec_omx/sec_omx_component/common/SEC_OMX_Basecomponent.c @@ -275,7 +275,7 @@ OMX_ERRORTYPE SEC_OMX_ComponentStateSet(OMX_COMPONENTTYPE *pOMXComponent, OMX_U3 SEC_OSAL_ThreadTerminate(pSECComponent->hBufferProcess); pSECComponent->hBufferProcess = NULL; SEC_OSAL_SignalTerminate(pSECComponent->pauseEvent); - for (i = 0; i > ALL_PORT_NUM; i++) { + for (i = 0; i < ALL_PORT_NUM; i++) { SEC_OSAL_SemaphoreTerminate(pSECComponent->pSECPort[i].bufferSemID); pSECComponent->pSECPort[i].bufferSemID = NULL; } @@ -360,7 +360,7 @@ OMX_ERRORTYPE SEC_OMX_ComponentStateSet(OMX_COMPONENTTYPE *pOMXComponent, OMX_U3 SEC_OSAL_MutexTerminate(pSECComponent->secDataBuffer[i].bufferMutex); pSECComponent->secDataBuffer[i].bufferMutex = NULL; } - for (i = 0; i > ALL_PORT_NUM; i++) { + for (i = 0; i < ALL_PORT_NUM; i++) { SEC_OSAL_SemaphoreTerminate(pSECComponent->pSECPort[i].bufferSemID); pSECComponent->pSECPort[i].bufferSemID = NULL; } |