From 246b28578369d54cf1e5368aad7c0c609d913c31 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tim-Philipp=20M=C3=BCller?= Date: Thu, 5 May 2016 18:50:05 +0100 Subject: [PATCH] flowcombiner: add debug category Not that it logs much. --- libs/gst/base/gstflowcombiner.c | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/libs/gst/base/gstflowcombiner.c b/libs/gst/base/gstflowcombiner.c index f3d659b..377198f 100644 --- a/libs/gst/base/gstflowcombiner.c +++ b/libs/gst/base/gstflowcombiner.c @@ -74,9 +74,14 @@ struct _GstFlowCombiner static GstFlowCombiner *gst_flow_combiner_ref (GstFlowCombiner * combiner); static void gst_flow_combiner_unref (GstFlowCombiner * combiner); -G_DEFINE_BOXED_TYPE (GstFlowCombiner, gst_flow_combiner, +GST_DEBUG_CATEGORY_STATIC (flowcombiner_dbg); +#define GST_CAT_DEFAULT flowcombiner_dbg + +G_DEFINE_BOXED_TYPE_WITH_CODE (GstFlowCombiner, gst_flow_combiner, (GBoxedCopyFunc) gst_flow_combiner_ref, - (GBoxedFreeFunc) gst_flow_combiner_unref); + (GBoxedFreeFunc) gst_flow_combiner_unref, + GST_DEBUG_CATEGORY_INIT (flowcombiner_dbg, "flowcombiner", 0, + "Flow Combiner")); /** * gst_flow_combiner_new: @@ -95,6 +100,9 @@ gst_flow_combiner_new (void) combiner->last_ret = GST_FLOW_OK; combiner->ref_count = 1; + /* Make sure debug category is initialised */ + gst_flow_combiner_get_type (); + return combiner; } -- 2.7.4