add debugging categories
authorThomas Vander Stichele <thomas@apestaart.org>
Tue, 20 Apr 2004 15:45:07 +0000 (15:45 +0000)
committerThomas Vander Stichele <thomas@apestaart.org>
Tue, 20 Apr 2004 15:45:07 +0000 (15:45 +0000)
Original commit message from CVS:
add debugging categories

ChangeLog
sys/ximage/ximagesink.c
sys/xvimage/xvimagesink.c

index 71d0b79..649fdfc 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,11 @@
 2004-04-20  Thomas Vander Stichele  <thomas at apestaart dot org>
 
+       * sys/ximage/ximagesink.c: (plugin_init):
+       * sys/xvimage/xvimagesink.c: (plugin_init):
+          add debuggin categories
+
+2004-04-20  Thomas Vander Stichele  <thomas at apestaart dot org>
+
        * po/en_GB.po:
         * po/LINGUAS:
           Adding en_GB translation (Gareth Owen)
index 03b3878..68f6126 100644 (file)
 /* Object header */
 #include "ximagesink.h"
 
+/* Debugging category */
+#include <gst/gstinfo.h>
+GST_DEBUG_CATEGORY_STATIC (gst_debug_ximagesink);
+#define GST_CAT_DEFAULT gst_debug_ximagesink
+
 static void gst_ximagesink_buffer_free (GstBuffer * buffer);
 
 /* ElementFactory information */
@@ -1409,6 +1414,9 @@ plugin_init (GstPlugin * plugin)
           GST_RANK_SECONDARY, GST_TYPE_XIMAGESINK))
     return FALSE;
 
+  GST_DEBUG_CATEGORY_INIT (gst_debug_ximagesink, "ximagesink", 0,
+      "ximagesink element");
+
   return TRUE;
 }
 
index b7f8d01..aa05888 100644 (file)
 /* Object header */
 #include "xvimagesink.h"
 
+/* Debugging category */
+#include <gst/gstinfo.h>
+GST_DEBUG_CATEGORY_STATIC (gst_debug_xvimagesink);
+#define GST_CAT_DEFAULT gst_debug_xvimagesink
+
 static void gst_xvimagesink_buffer_free (GstBuffer * buffer);
 
 /* ElementFactory information */
@@ -1785,6 +1790,9 @@ plugin_init (GstPlugin * plugin)
           GST_RANK_PRIMARY, GST_TYPE_XVIMAGESINK))
     return FALSE;
 
+  GST_DEBUG_CATEGORY_INIT (gst_debug_xvimagesink, "xvimagesink", 0,
+      "xvimagesink element");
+
   return TRUE;
 }