exynos_omx: multi_thread: Fix CodecReconfig issue.
authorSeungBeom Kim <sbcrux.kim@samsung.com>
Tue, 17 Sep 2013 00:39:46 +0000 (09:39 +0900)
committerLajos Molnar <lajos@google.com>
Wed, 18 Sep 2013 14:37:16 +0000 (07:37 -0700)
Change-Id: I60494d236ca458c90d6b2a64c19980688517941d
Signed-off-by: SeungBeom Kim <sbcrux.kim@samsung.com>
Bug: 10728106

exynos_omx/openmax/exynos_omx/component/video/dec/Exynos_OMX_Vdec.c

index 3f072c56d105628ae1f66227cd5e15b857bf3972..726a1f9bdfd6ced3f653e06dab0eb0ff01103ef8 100644 (file)
@@ -262,6 +262,9 @@ OMX_ERRORTYPE Exynos_ResetAllPortConfig(OMX_COMPONENTTYPE *pOMXComponent)
     pExynosOutputPort->portDefinition.format.video.pNativeRender = 0;
     pExynosOutputPort->portDefinition.format.video.bFlagErrorConcealment = OMX_FALSE;
     pExynosOutputPort->portDefinition.format.video.eColorFormat = OMX_COLOR_FormatYUV420Planar;
+    pExynosOutputPort->portDefinition.nBufferCountActual = MAX_VIDEO_OUTPUTBUFFER_NUM;
+    pExynosOutputPort->portDefinition.nBufferCountMin = MAX_VIDEO_OUTPUTBUFFER_NUM;
+    pExynosOutputPort->portDefinition.nBufferSize = DEFAULT_VIDEO_OUTPUT_BUFFER_SIZE;
     pExynosOutputPort->portDefinition.bEnabled = OMX_TRUE;
     pExynosOutputPort->bufferProcessType = BUFFER_COPY | BUFFER_ANBSHARE;
     pExynosOutputPort->bIsANBEnabled = OMX_FALSE;