From 5a29478c2d87524b644fe3a2fa8d6cf64a6d77ef Mon Sep 17 00:00:00 2001 From: Thibault Saunier Date: Fri, 18 May 2012 10:28:26 -0400 Subject: [PATCH] timeline: Create a debug logging category for the timeline --- ges/ges-timeline.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/ges/ges-timeline.c b/ges/ges-timeline.c index 44e51656f6..f61adcdde5 100644 --- a/ges/ges-timeline.c +++ b/ges/ges-timeline.c @@ -49,6 +49,10 @@ static inline void init_movecontext (MoveContext * mv_ctx); G_DEFINE_TYPE (GESTimeline, ges_timeline, GST_TYPE_BIN); +GST_DEBUG_CATEGORY_STATIC (ges_timeline_debug); +#undef GST_CAT_DEFAULT +#define GST_CAT_DEFAULT ges_timeline_debug + #define GES_TIMELINE_PENDINGOBJS_GET_LOCK(timeline) \ (GES_TIMELINE(timeline)->priv->pendingobjects_lock) #define GES_TIMELINE_PENDINGOBJS_LOCK(timeline) \ @@ -396,6 +400,9 @@ ges_timeline_init (GESTimeline * self) { GESTimelinePrivate *priv; + GST_DEBUG_CATEGORY_INIT (ges_timeline_debug, "gestimeline", + GST_DEBUG_FG_YELLOW, "ges timeline"); + self->priv = G_TYPE_INSTANCE_GET_PRIVATE (self, GES_TYPE_TIMELINE, GESTimelinePrivate);