From aae0dc37c934164ba876557b8d862efe596b4c26 Mon Sep 17 00:00:00 2001 From: William Manley Date: Thu, 26 Nov 2015 11:33:02 +0000 Subject: [PATCH] allocators: add debug category for fd memory and allocator Debugging can now be viewed by setting GST_DEBUG=fdmemory:9 https://bugzilla.gnome.org/show_bug.cgi?id=758744 --- gst-libs/gst/allocators/gstfdmemory.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/gst-libs/gst/allocators/gstfdmemory.c b/gst-libs/gst/allocators/gstfdmemory.c index 30720862e7..7a7f05b032 100644 --- a/gst-libs/gst/allocators/gstfdmemory.c +++ b/gst-libs/gst/allocators/gstfdmemory.c @@ -37,6 +37,9 @@ #include #endif +GST_DEBUG_CATEGORY_STATIC (gst_fdmemory_debug); +#define GST_CAT_DEFAULT gst_fdmemory_debug + typedef struct { GstMemory mem; @@ -197,6 +200,8 @@ gst_fd_allocator_class_init (GstFdAllocatorClass * klass) allocator_class->alloc = NULL; allocator_class->free = gst_fd_mem_free; + GST_DEBUG_CATEGORY_INIT (gst_fdmemory_debug, "fdmemory", 0, + "GstFdMemory and GstFdAllocator"); } static void