aclass = GST_ALLOCATOR_GET_CLASS (allocator);
if (aclass->alloc)
- mem = aclass->alloc (allocator, size, params, NULL);
+ mem = aclass->alloc (allocator, size, params);
else
mem = NULL;
static GstMemory *
default_alloc (GstAllocator * allocator, gsize size,
- GstAllocationParams * params, gpointer user_data)
+ GstAllocationParams * params)
{
gsize maxsize = size + params->prefix + params->padding;
GstObjectClass object_class;
GstMemory * (*alloc) (GstAllocator *allocator, gsize size,
- GstAllocationParams *params, gpointer user_data);
+ GstAllocationParams *params);
void (*free) (GstAllocator *allocator, GstMemory *memory);
/*< private >*/
static GstMemory *
-_my_alloc (GstAllocator * allocator, gsize size,
- GstAllocationParams * params, gpointer user_data)
+_my_alloc (GstAllocator * allocator, gsize size, GstAllocationParams * params)
{
MyMemory *mem;
gsize maxsize = size + params->prefix + params->padding;
static GstMemory *
-_my_alloc (GstAllocator * allocator, gsize size,
- GstAllocationParams * params, gpointer user_data)
+_my_alloc (GstAllocator * allocator, gsize size, GstAllocationParams * params)
{
g_warning ("Use my_vidmem_alloc() to allocate from this allocator");