From 326e15ca85e66352078c73b42c27afcb5f0b7f48 Mon Sep 17 00:00:00 2001 From: Michal Lazo Date: Sun, 22 Jun 2014 21:11:45 +0000 Subject: [PATCH] omxbufferpool: Initialize debug category --- omx/gstomxbufferpool.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/omx/gstomxbufferpool.c b/omx/gstomxbufferpool.c index decd94dcc5..10a6598c0f 100644 --- a/omx/gstomxbufferpool.c +++ b/omx/gstomxbufferpool.c @@ -202,7 +202,12 @@ gst_omx_memory_allocator_alloc (GstAllocator * allocator, GstMemoryFlags flags, static GQuark gst_omx_buffer_data_quark = 0; -G_DEFINE_TYPE (GstOMXBufferPool, gst_omx_buffer_pool, GST_TYPE_BUFFER_POOL); +#define DEBUG_INIT \ + GST_DEBUG_CATEGORY_INIT (gst_omx_buffer_pool_debug_category, "omxbufferpool", 0, \ + "debug category for gst-omx buffer pool base class"); + +G_DEFINE_TYPE_WITH_CODE (GstOMXBufferPool, gst_omx_buffer_pool, + GST_TYPE_BUFFER_POOL, DEBUG_INIT); static void gst_omx_buffer_pool_free_buffer (GstBufferPool * bpool, GstBuffer * buffer);