must to use the SECURE_MEMORY type in DRM case.
but, the memory type has been overwritten
by other condition.
fixed this problem.
Change-Id: I8b2f8519c09425b2355e38c81fa87ed514451c03
Signed-off-by: Taehwan Kim <t_h.kim@samsung.com>
FunctionIn();
- if (pVideoDec->bDRMPlayerMode == OMX_TRUE)
- eMemoryType = SECURE_MEMORY;
-
if (nPortIndex == INPUT_PORT_INDEX) {
ppCodecBuffer = &(pVideoDec->pMFCDecInputBuffer[0]);
nPlaneCnt = MFC_INPUT_BUFFER_PLANE;
#endif
}
+ if (pVideoDec->bDRMPlayerMode == OMX_TRUE)
+ eMemoryType = SECURE_MEMORY;
+
for (i = 0; i < nBufferCnt; i++) {
ppCodecBuffer[i] = (CODEC_DEC_BUFFER *)Exynos_OSAL_Malloc(sizeof(CODEC_DEC_BUFFER));
if (ppCodecBuffer[i] == NULL) {