FunctionIn();
+ if ((nPortIndex != INPUT_PORT_INDEX) && (nPortIndex != OUTPUT_PORT_INDEX)) {
+ ret = OMX_ErrorBadPortIndex;
+ goto EXIT;
+ }
+
if ((nPortIndex == INPUT_PORT_INDEX) &&
(pH264Dec->bSourceStart == OMX_TRUE)) {
Exynos_CodecBufferReset(pExynosComponent, INPUT_PORT_INDEX);
Exynos_CodecBufferEnQueue(pExynosComponent, OUTPUT_PORT_INDEX, (OMX_PTR)pBuffer);
}
pOutbufOps->Clear_Queue(hMFCHandle);
- } else {
- ret = OMX_ErrorBadParameter;
- goto EXIT;
}
EXIT:
FunctionIn();
+ if ((nPortIndex != INPUT_PORT_INDEX) && (nPortIndex != OUTPUT_PORT_INDEX)) {
+ ret = OMX_ErrorBadPortIndex;
+ goto EXIT;
+ }
+
if ((nPortIndex == INPUT_PORT_INDEX) &&
(pMpeg4Dec->bSourceStart == OMX_TRUE)) {
Exynos_CodecBufferReset(pExynosComponent, INPUT_PORT_INDEX);
Exynos_CodecBufferEnQueue(pExynosComponent, OUTPUT_PORT_INDEX, (OMX_PTR)pBuffer);
}
pOutbufOps->Clear_Queue(hMFCHandle);
- } else {
- ret = OMX_ErrorBadParameter;
- goto EXIT;
}
EXIT:
FunctionIn();
+ if ((nPortIndex != INPUT_PORT_INDEX) && (nPortIndex != OUTPUT_PORT_INDEX)) {
+ ret = OMX_ErrorBadPortIndex;
+ goto EXIT;
+ }
+
if ((nPortIndex == INPUT_PORT_INDEX) &&
(pVp8Dec->bSourceStart == OMX_TRUE)) {
Exynos_CodecBufferReset(pExynosComponent, INPUT_PORT_INDEX);
Exynos_CodecBufferEnQueue(pExynosComponent, OUTPUT_PORT_INDEX, (OMX_PTR)pBuffer);
}
pOutbufOps->Clear_Queue(hMFCHandle);
- } else {
- ret = OMX_ErrorBadParameter;
- goto EXIT;
}
EXIT: