mirror of
https://github.com/nyanmisaka/mpp.git
synced 2025-10-05 17:16:50 +08:00
[osal]: fix os_allocator on Android
git-svn-id: https://10.10.10.66:8443/svn/MediaProcessPlatform/trunk/mpp@133 6e48237b-75ef-9749-8fc9-41990f28c85a
This commit is contained in:
@@ -18,6 +18,13 @@
|
|||||||
#include "os_mem.h"
|
#include "os_mem.h"
|
||||||
#include "os_allocator.h"
|
#include "os_allocator.h"
|
||||||
|
|
||||||
|
int os_allocator_open(void **ctx)
|
||||||
|
{
|
||||||
|
if (ctx)
|
||||||
|
*ctx = NULL;
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
int os_allocator_alloc(void *ctx, MppBufferData *data, size_t alignment, size_t size)
|
int os_allocator_alloc(void *ctx, MppBufferData *data, size_t alignment, size_t size)
|
||||||
{
|
{
|
||||||
(void) ctx;
|
(void) ctx;
|
||||||
@@ -30,3 +37,8 @@ void os_allocator_free(void *ctx, MppBufferData *data)
|
|||||||
os_free(data->ptr);
|
os_free(data->ptr);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void os_allocator_close(void *ctx)
|
||||||
|
{
|
||||||
|
(void) ctx;
|
||||||
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user