summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWim Taymans <wim.taymans@collabora.co.uk>2011-03-03 18:38:32 +0100
committerWim Taymans <wim.taymans@collabora.co.uk>2011-03-04 10:15:36 +0100
commit6813767d1904b40752b9b4b4cf03798e1fad2e22 (patch)
tree767b65df13e2dac12fbd7768eccbcdba9e998f63
parenta7be7777f2ef411b8a1f68a007588fa81529595f (diff)
bufferpool: add debugbufferpool
-rw-r--r--gst/gstbufferpool.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/gst/gstbufferpool.c b/gst/gstbufferpool.c
index 68613dd82..83acd6828 100644
--- a/gst/gstbufferpool.c
+++ b/gst/gstbufferpool.c
@@ -39,6 +39,8 @@
#include "gstbufferpool.h"
+GST_DEBUG_CATEGORY_STATIC (gst_buffer_pool_debug);
+#define GST_CAT_DEFAULT gst_buffer_pool_debug
#define GST_BUFFER_POOL_GET_PRIVATE(obj) \
(G_TYPE_INSTANCE_GET_PRIVATE ((obj), GST_TYPE_BUFFER_POOL, GstBufferPoolPrivate))
@@ -94,6 +96,9 @@ gst_buffer_pool_class_init (GstBufferPoolClass * klass)
klass->alloc_buffer = default_alloc_buffer;
klass->release_buffer = default_release_buffer;
klass->free_buffer = default_free_buffer;
+
+ GST_DEBUG_CATEGORY_INIT (gst_buffer_pool_debug, "bufferpool", 0,
+ "bufferpool debug");
}
static void