/*************/
/* TBD */
/*************/
+ ExynosVideoErrorType codecReturn = VIDEO_ERROR_NONE;
ExynosVideoPlane plane;
for (i = 0; i < pExynosOutputPort->portDefinition.nBufferCountActual; i++) {
plane.addr = pExynosOutputPort->extendBufferHeader[i].OMXBufferHeader->pBuffer;
ret = OMX_ErrorInsufficientResources;
goto EXIT;
}
- pOutbufOps->Enqueue(hMFCHandle, (unsigned char **)&pExynosOutputPort->extendBufferHeader[i].OMXBufferHeader->pBuffer,
+ codecReturn = pOutbufOps->Enqueue(hMFCHandle, (unsigned char **)&pExynosOutputPort->extendBufferHeader[i].OMXBufferHeader->pBuffer,
(unsigned int *)dataLen, MFC_OUTPUT_BUFFER_PLANE, NULL);
+ if (codecReturn != VIDEO_ERROR_NONE) {
+ Exynos_OSAL_Log(EXYNOS_LOG_ERROR, "Output buffer that has been entered is invalid.");
+ ret = OMX_ErrorUndefined;
+ goto EXIT;
+ }
}
}
}
if (pH264Enc->hMFCH264Handle.bConfiguredMFCDst == OMX_FALSE) {
ret = H264CodecDstSetup(pOMXComponent);
+ if (ret != OMX_ErrorNone) {
+ goto EXIT;
+ }
}
if (pVideoEnc->configChange == OMX_TRUE) {
(unsigned int *)dataLen, MFC_OUTPUT_BUFFER_PLANE, NULL);
}
} else if ((pExynosOutputPort->bufferProcessType & BUFFER_SHARE) == BUFFER_SHARE) {
- /* Register input buffer */
+ /* Register output buffer */
/*************/
/* TBD */
/*************/
+ ExynosVideoErrorType codecReturn = VIDEO_ERROR_NONE;
ExynosVideoPlane plane;
for (i = 0; i < pExynosOutputPort->portDefinition.nBufferCountActual; i++) {
plane.addr = pExynosOutputPort->extendBufferHeader[i].OMXBufferHeader->pBuffer;
ret = OMX_ErrorInsufficientResources;
goto EXIT;
}
- pOutbufOps->Enqueue(hMFCHandle, (unsigned char **)&pExynosOutputPort->extendBufferHeader[i].OMXBufferHeader->pBuffer,
+ codecReturn = pOutbufOps->Enqueue(hMFCHandle, (unsigned char **)&pExynosOutputPort->extendBufferHeader[i].OMXBufferHeader->pBuffer,
(unsigned int *)dataLen, MFC_OUTPUT_BUFFER_PLANE, NULL);
+ if (codecReturn != VIDEO_ERROR_NONE) {
+ Exynos_OSAL_Log(EXYNOS_LOG_ERROR, "Output buffer that has been entered is invalid.");
+ ret = OMX_ErrorUndefined;
+ goto EXIT;
+ }
}
}
}
if (pMpeg4Enc->hMFCMpeg4Handle.bConfiguredMFCDst == OMX_FALSE) {
ret = Mpeg4CodecDstSetup(pOMXComponent);
+ if (ret != OMX_ErrorNone) {
+ goto EXIT;
+ }
}
if (pVideoEnc->configChange == OMX_TRUE) {