ION-FD reference count increase works incorrect. if using output metadata buffer in Decode component.
Bug:
10916591
Change-Id: I34241372c089339290bb43a65832a4eebd6ca86c
Signed-off-by: SeungBeom Kim <sbcrux.kim@samsung.com>
break;
}
}
- Exynos_OSAL_RefANB_Increase(pVideoDec->hRefHandle, dstInputData.bufferHeader->pBuffer);
+
+ OMX_PTR pBufferHandle = dstInputData.bufferHeader->pBuffer;
+ if (exynosOutputPort->bStoreMetaData == OMX_TRUE)
+ Exynos_OSAL_GetInfoFromMetaData(dstInputData.bufferHeader->pBuffer, &pBufferHandle);
+ Exynos_OSAL_RefANB_Increase(pVideoDec->hRefHandle, pBufferHandle);
Exynos_ResetDataBuffer(dstInputUseBuffer);
}
}