From e6d23eec2ec1d6487e9248251c6e70f7c9dd9cce Mon Sep 17 00:00:00 2001 From: Thomas Vander Stichele Date: Wed, 18 Feb 2004 16:44:51 +0000 Subject: [PATCH] add debug category Original commit message from CVS: add debug category --- ChangeLog | 5 +++++ ext/gdk_pixbuf/gstgdkpixbuf.c | 7 ++++++- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index df041eb7f7..a50603a443 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2004-02-18 Thomas Vander Stichele + + * ext/gdk_pixbuf/gstgdkpixbuf.c: (plugin_init): + set up debug category + 2004-02-18 Julien MOUTTE * sys/ximage/ximagesink.c: (gst_ximagesink_renegotiate_size), diff --git a/ext/gdk_pixbuf/gstgdkpixbuf.c b/ext/gdk_pixbuf/gstgdkpixbuf.c index fe40b925c0..efe2f20b50 100644 --- a/ext/gdk_pixbuf/gstgdkpixbuf.c +++ b/ext/gdk_pixbuf/gstgdkpixbuf.c @@ -30,6 +30,9 @@ #include "gstgdkpixbuf.h" +GST_DEBUG_CATEGORY_STATIC (gst_gdk_pixbuf_debug); +#define GST_CAT_DEFAULT gst_gdk_pixbuf_debug + static GstElementDetails plugin_details = { "GdkPixbuf image decoder", "Codec/Decoder/Image", @@ -445,7 +448,9 @@ static gboolean plugin_init (GstPlugin *plugin) { GstCaps *caps; - + + GST_DEBUG_CATEGORY_INIT (gst_gdk_pixbuf_debug, "gdkpixbuf", 0, "gdk pixbuf loader"); + if (!gst_element_register (plugin, "gdkpixbufdec", GST_RANK_NONE, GST_TYPE_GDK_PIXBUF)) return FALSE;