ffmpegcolorspace: Use the ffmpegcolorspace debug category
authorJan Schmidt <thaytan@noraisin.net>
Wed, 30 Sep 2009 22:22:35 +0000 (23:22 +0100)
committerJan Schmidt <thaytan@noraisin.net>
Tue, 6 Oct 2009 19:37:42 +0000 (20:37 +0100)
Move gstffmpegcodecmap debug to the ffmpegcolorspace category

gst/ffmpegcolorspace/gstffmpegcodecmap.c
gst/ffmpegcolorspace/gstffmpegcolorspace.c

index 0c06d1b..258090c 100644 (file)
@@ -30,6 +30,9 @@
 #include "avcodec.h"
 #include "gstffmpegcodecmap.h"
 
+GST_DEBUG_CATEGORY_EXTERN (ffmpegcolorspace_debug);
+#define GST_CAT_DEFAULT ffmpegcolorspace_debug
+
 static GstCaps *
 gst_ff_vid_caps_new (AVCodecContext * context,
     const char *mimetype, const char *fieldname, ...)
index 2deb4f1..9ae3c68 100644 (file)
@@ -39,7 +39,7 @@
 #include "gstffmpegcolorspace.h"
 #include "gstffmpegcodecmap.h"
 
-GST_DEBUG_CATEGORY_STATIC (ffmpegcolorspace_debug);
+GST_DEBUG_CATEGORY (ffmpegcolorspace_debug);
 #define GST_CAT_DEFAULT ffmpegcolorspace_debug
 
 /* elementfactory information */
@@ -360,9 +360,6 @@ gst_ffmpegcsp_class_init (GstFFMpegCspClass * klass)
 #endif
 
   gstbasetransform_class->passthrough_on_same_caps = TRUE;
-
-  GST_DEBUG_CATEGORY_INIT (ffmpegcolorspace_debug, "ffmpegcolorspace", 0,
-      "FFMPEG-based colorspace converter");
 }
 
 static void
@@ -489,6 +486,9 @@ gst_ffmpegcolorspace_register (GstPlugin * plugin)
 {
   GstCaps *caps;
 
+  GST_DEBUG_CATEGORY_INIT (ffmpegcolorspace_debug, "ffmpegcolorspace", 0,
+      "FFMPEG-based colorspace converter");
+
   /* template caps */
   caps = gst_ffmpegcsp_codectype_to_caps (CODEC_TYPE_VIDEO, NULL);