diff options
author | Jamie Gennis <jgennis@google.com> | 2011-08-08 16:07:24 -0700 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2011-08-08 16:07:24 -0700 |
commit | 08809da48f40372bb8fa29b01f82305bd738ec51 (patch) | |
tree | f5a17c546161172dfd90d90867b1f42bcd441435 /sec_mm | |
parent | c97c6029afa0d6c4783d6f62767852a9d962cf43 (diff) | |
parent | b051da7035c060ba7fd5fec669aa4f85400ec099 (diff) | |
download | device_samsung_crespo-08809da48f40372bb8fa29b01f82305bd738ec51.zip device_samsung_crespo-08809da48f40372bb8fa29b01f82305bd738ec51.tar.gz device_samsung_crespo-08809da48f40372bb8fa29b01f82305bd738ec51.tar.bz2 |
Merge "Fix a used-before-initialized compile warning"
Diffstat (limited to 'sec_mm')
-rw-r--r-- | sec_mm/sec_omx/sec_omx_component/common/SEC_OMX_Basecomponent.c | 5 |
1 files changed, 1 insertions, 4 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 4edbad1..170600a 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 @@ -1094,7 +1094,7 @@ OMX_ERRORTYPE SEC_OMX_SetParameter( { OMX_PARAM_BUFFERSUPPLIERTYPE *bufferSupplier = (OMX_PARAM_BUFFERSUPPLIERTYPE *)ComponentParameterStructure; OMX_U32 portIndex = bufferSupplier->nPortIndex; - SEC_OMX_BASEPORT *pSECPort; + SEC_OMX_BASEPORT *pSECPort = &pSECComponent->pSECPort[portIndex]; if ((pSECComponent->currentState != OMX_StateLoaded) && (pSECComponent->currentState != OMX_StateWaitForResources)) { if (pSECPort->portDefinition.bEnabled == OMX_TRUE) { @@ -1112,7 +1112,6 @@ OMX_ERRORTYPE SEC_OMX_SetParameter( goto EXIT; } - pSECPort = &pSECComponent->pSECPort[portIndex]; if (bufferSupplier->eBufferSupplier == OMX_BufferSupplyUnspecified) { ret = OMX_ErrorNone; goto EXIT; @@ -1481,5 +1480,3 @@ EXIT: return ret; } - - |