mirror of
https://github.com/nyanmisaka/mpp.git
synced 2025-10-05 17:16:50 +08:00
[drm]: add macro control in os_allocator.c
1. fix compiling error of previous commit 2. can enable drm on x86 pc linux platform Change-Id: I06271fe0efcaa7de2531c7fb3e21bf9c75781beb Signed-off-by: Jung Zhao <jung.zhao@rock-chips.com> Signed-off-by: Herman Chen <herman.chen@rock-chips.com>
This commit is contained in:
@@ -149,7 +149,11 @@ MPP_RET os_allocator_get(os_allocator *api, MppBufferType type)
|
||||
*api = allocator_v4l2;
|
||||
} break;
|
||||
case MPP_BUFFER_TYPE_DRM : {
|
||||
#ifdef HAVE_DRM
|
||||
*api = allocator_drm;
|
||||
#else
|
||||
*api = allocator_normal;
|
||||
#endif
|
||||
} break;
|
||||
default : {
|
||||
ret = MPP_NOK;
|
||||
|
Reference in New Issue
Block a user