diff options
author | Jamie Gennis <jgennis@google.com> | 2011-08-04 14:07:15 -0700 |
---|---|---|
committer | Jamie Gennis <jgennis@google.com> | 2011-08-04 14:09:45 -0700 |
commit | b051da7035c060ba7fd5fec669aa4f85400ec099 (patch) | |
tree | f14e4f226119838bf050c1689e1c0fbe1ac9fb76 /sec_mm | |
parent | c40b6cc54765030d29acb54bd957c38f633cd5ea (diff) | |
download | device_samsung_crespo-b051da7035c060ba7fd5fec669aa4f85400ec099.zip device_samsung_crespo-b051da7035c060ba7fd5fec669aa4f85400ec099.tar.gz device_samsung_crespo-b051da7035c060ba7fd5fec669aa4f85400ec099.tar.bz2 |
Fix a used-before-initialized compile warning
Change-Id: I8e11a98c17b325f88fab1b77e2d8c08baae64d77
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; } - - |