mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-11 09:55:36 +00:00
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
This commit is contained in:
parent
e8a403d181
commit
aae0dc37c9
1 changed files with 5 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue