mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-17 11:45:25 +00:00
glbuffer: add a name to the allocator
This commit is contained in:
parent
5dcd500257
commit
4d88848fae
1 changed files with 5 additions and 0 deletions
|
@ -402,6 +402,11 @@ gst_gl_buffer_allocator_class_init (GstGLBufferAllocatorClass * klass)
|
||||||
static void
|
static void
|
||||||
gst_gl_buffer_allocator_init (GstGLBufferAllocator * allocator)
|
gst_gl_buffer_allocator_init (GstGLBufferAllocator * allocator)
|
||||||
{
|
{
|
||||||
|
GstAllocator *alloc = GST_ALLOCATOR_CAST (allocator);
|
||||||
|
|
||||||
|
alloc->mem_type = GST_GL_BUFFER_ALLOCATOR_NAME;
|
||||||
|
|
||||||
|
GST_OBJECT_FLAG_SET (allocator, GST_ALLOCATOR_FLAG_CUSTOM_ALLOC);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in a new issue