summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWilliam Manley <will@williammanley.net>2015-11-26 11:33:02 +0000
committerTim-Philipp Müller <tim@centricular.com>2015-11-27 15:33:47 +0000
commitaae0dc37c934164ba876557b8d862efe596b4c26 (patch)
treea87a1a3a71cb330288cacd4c332cc6d69305f4b5
parente8a403d181a5e37c28df2322772b3ef9cc94f864 (diff)
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
-rw-r--r--gst-libs/gst/allocators/gstfdmemory.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/gst-libs/gst/allocators/gstfdmemory.c b/gst-libs/gst/allocators/gstfdmemory.c
index 30720862e..7a7f05b03 100644
--- a/gst-libs/gst/allocators/gstfdmemory.c
+++ b/gst-libs/gst/allocators/gstfdmemory.c
@@ -37,6 +37,9 @@
#include <unistd.h>
#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