[osal]: fix allocator error on x86_64

x86_64 is for simulation debug. It is just for working flow test.

Change-Id: I2d1cb50e52a104e58f6eaf3b27fd9dcf41b9ada6
Signed-off-by: Herman Chen <herman.chen@rock-chips.com>
This commit is contained in:
Herman Chen
2016-09-06 16:22:58 +08:00
parent 009bc1fc0d
commit 673bc0eef4
2 changed files with 9 additions and 1 deletions

View File

@@ -138,7 +138,11 @@ MPP_RET os_allocator_get(os_allocator *api, MppBufferType type)
*api = allocator_normal;
} break;
case MPP_BUFFER_TYPE_ION : {
#ifdef RKPLATFORM
*api = allocator_ion;
#else
*api = allocator_normal;
#endif
} break;
case MPP_BUFFER_TYPE_V4L2 : {
mpp_err("os_allocator_get Linux MPP_BUFFER_TYPE_V4L2 do not implement yet\n");