From a51eccc734723c33a6e9e6bbbf7c04b4dbd75ab3 Mon Sep 17 00:00:00 2001 From: Matthew Waters Date: Thu, 17 Dec 2015 15:50:40 +1100 Subject: [PATCH] glbuffer: add a name to the allocator --- gst-libs/gst/gl/gstglbuffer.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/gst-libs/gst/gl/gstglbuffer.c b/gst-libs/gst/gl/gstglbuffer.c index 86cf8be7bd..4b01000850 100644 --- a/gst-libs/gst/gl/gstglbuffer.c +++ b/gst-libs/gst/gl/gstglbuffer.c @@ -402,6 +402,11 @@ gst_gl_buffer_allocator_class_init (GstGLBufferAllocatorClass * klass) static void 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); } /**