mirror of
https://github.com/nyanmisaka/mpp.git
synced 2025-10-06 09:36:49 +08:00
[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:
@@ -1,3 +1,7 @@
|
||||
#!/bin/bash
|
||||
# Run this from within a bash shell
|
||||
cmake -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=debug -DCMAKE_RKPLATFORM_ENABLE=ON ../../../ && ccmake ../../../
|
||||
# x86_64 is for simulation do not enable RK platform
|
||||
cmake -G "Unix Makefiles" \
|
||||
-DCMAKE_BUILD_TYPE=debug \
|
||||
-DCMAKE_RKPLATFORM_ENABLE=OFF \
|
||||
../../../ && ccmake ../../../
|
||||
|
@@ -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");
|
||||
|
Reference in New Issue
Block a user