gst-libs/gst/video/gstvideosink.c: Add a debug category.
authorJulien Moutte <julien@moutte.net>
Sun, 18 Dec 2005 10:54:33 +0000 (10:54 +0000)
committerJulien Moutte <julien@moutte.net>
Sun, 18 Dec 2005 10:54:33 +0000 (10:54 +0000)
Original commit message from CVS:
2005-12-18  Julien MOUTTE  <julien@moutte.net>

* gst-libs/gst/video/gstvideosink.c: (gst_video_sink_base_init),
(gst_video_sink_get_type): Add a debug category.

ChangeLog
gst-libs/gst/video/gstvideosink.c

index 4d8e938..a7f0103 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2005-12-18  Julien MOUTTE  <julien@moutte.net>
+
+       * 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  <burger@speedy.org> 
 
        * gst-libs/gst/rtp/gstbasertpdepayload.c:
index ba3d1e8..73bc078 100644 (file)
@@ -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,