From 7811799ce804ac0c5e8c4e9ef5d4b5d403c7b631 Mon Sep 17 00:00:00 2001 From: Julien Moutte Date: Sun, 18 Dec 2005 10:54:33 +0000 Subject: [PATCH] gst-libs/gst/video/gstvideosink.c: Add a debug category. Original commit message from CVS: 2005-12-18 Julien MOUTTE * gst-libs/gst/video/gstvideosink.c: (gst_video_sink_base_init), (gst_video_sink_get_type): Add a debug category. --- ChangeLog | 5 +++++ gst-libs/gst/video/gstvideosink.c | 11 ++++++++++- 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 4d8e938df5..a7f0103e84 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2005-12-18 Julien MOUTTE + + * gst-libs/gst/video/gstvideosink.c: (gst_video_sink_base_init), + (gst_video_sink_get_type): Add a debug category. + 2005-12-17 Philippe Khalaf * gst-libs/gst/rtp/gstbasertpdepayload.c: diff --git a/gst-libs/gst/video/gstvideosink.c b/gst-libs/gst/video/gstvideosink.c index ba3d1e8f4f..73bc0783fe 100644 --- a/gst-libs/gst/video/gstvideosink.c +++ b/gst-libs/gst/video/gstvideosink.c @@ -37,6 +37,9 @@ #include "gstvideosink.h" +GST_DEBUG_CATEGORY_STATIC (video_sink_debug); +#define GST_CAT_DEFAULT video_sink_debug + static GstElementClass *parent_class = NULL; /** @@ -110,6 +113,12 @@ gst_video_sink_class_init (GstVideoSinkClass * klass) parent_class = g_type_class_ref (GST_TYPE_ELEMENT); } +static void +gst_video_sink_base_init (gpointer g_class) +{ + GST_DEBUG_CATEGORY_INIT (video_sink_debug, "videosink", 0, "GstVideoSink"); +} + /* Public methods */ GType @@ -120,7 +129,7 @@ gst_video_sink_get_type (void) if (!videosink_type) { static const GTypeInfo videosink_info = { sizeof (GstVideoSinkClass), - NULL, + gst_video_sink_base_init, NULL, (GClassInitFunc) gst_video_sink_class_init, NULL,