dmabuf: The dmabuf allocator has a custom alloc function, mark it as such
authorSebastian Dröge <sebastian.droege@collabora.co.uk>
Fri, 22 Feb 2013 08:07:06 +0000 (09:07 +0100)
committerSebastian Dröge <sebastian.droege@collabora.co.uk>
Fri, 22 Feb 2013 08:07:40 +0000 (09:07 +0100)
gst-libs/gst/allocators/gstdmabuf.c

index 21ec009..6de525f 100644 (file)
@@ -215,6 +215,8 @@ dmabuf_mem_allocator_init (dmabuf_mem_Allocator * allocator)
   alloc->mem_unmap = (GstMemoryUnmapFunction) gst_dmabuf_mem_unmap;
   alloc->mem_share = (GstMemoryShareFunction) gst_dmabuf_mem_share;
   alloc->mem_copy = (GstMemoryCopyFunction) gst_dmabuf_mem_copy;
+
+  GST_OBJECT_FLAG_SET (allocator, GST_ALLOCATOR_FLAG_CUSTOM_ALLOC);
 }
 
 static void