Use GST_DEBUG_CATEGORY_STATIC where possible (#342503) plus two minor macro fixes.
authorTim-Philipp Müller <tim@centricular.net>
Thu, 22 Jun 2006 19:31:04 +0000 (19:31 +0000)
committerTim-Philipp Müller <tim@centricular.net>
Thu, 22 Jun 2006 19:31:04 +0000 (19:31 +0000)
Original commit message from CVS:
* ext/annodex/gstcmmldec.c:
* ext/annodex/gstcmmlenc.c:
* ext/annodex/gstcmmlparser.c:
* ext/dv/gstdvdec.c:
* ext/dv/gstdvdemux.c:
* ext/gdk_pixbuf/pixbufscale.c:
* ext/jpeg/gstjpegenc.c:
* ext/jpeg/gstsmokedec.c:
* ext/jpeg/gstsmokeenc.c:
* ext/libpng/gstpngdec.c:
* ext/libpng/gstpngenc.c:
* ext/speex/gstspeexenc.c:
* gst/alpha/gstalphacolor.c:
* gst/cutter/gstcutter.c:
* gst/debug/gstnavigationtest.c:
* gst/icydemux/gsticydemux.c:
* gst/level/gstlevel.c:
* gst/multipart/multipart.c:
* gst/rtp/gstrtpamrpay.c:
* gst/rtp/gstrtpdepay.c:
* gst/rtp/gstrtpilbcpay.c:
* gst/rtp/gstrtpmp4gpay.c:
* gst/rtp/gstrtpmp4vpay.c:
* gst/rtsp/gstrtpdec.c:
* gst/rtsp/gstrtspsrc.c:
* gst/udp/gstdynudpsink.c:
* gst/udp/gstmultiudpsink.c:
* gst/udp/gstudpsrc.c:
* gst/videobox/gstvideobox.c:
* gst/videofilter/gstvideoflip.c:
Use GST_DEBUG_CATEGORY_STATIC where possible (#342503)
plus two minor macro fixes.

31 files changed:
ChangeLog
ext/annodex/gstcmmldec.c
ext/annodex/gstcmmlenc.c
ext/annodex/gstcmmlparser.c
ext/dv/gstdvdec.c
ext/dv/gstdvdemux.c
ext/gdk_pixbuf/pixbufscale.c
ext/jpeg/gstjpegenc.c
ext/jpeg/gstsmokedec.c
ext/jpeg/gstsmokeenc.c
ext/libpng/gstpngdec.c
ext/libpng/gstpngenc.c
ext/speex/gstspeexenc.c
gst/alpha/gstalphacolor.c
gst/cutter/gstcutter.c
gst/debug/gstnavigationtest.c
gst/icydemux/gsticydemux.c
gst/level/gstlevel.c
gst/multipart/multipart.c
gst/rtp/gstrtpamrpay.c
gst/rtp/gstrtpdepay.c
gst/rtp/gstrtpilbcpay.c
gst/rtp/gstrtpmp4gpay.c
gst/rtp/gstrtpmp4vpay.c
gst/rtsp/gstrtpdec.c
gst/rtsp/gstrtspsrc.c
gst/udp/gstdynudpsink.c
gst/udp/gstmultiudpsink.c
gst/udp/gstudpsrc.c
gst/videobox/gstvideobox.c
gst/videofilter/gstvideoflip.c

index 6580f5a..c5777bc 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,40 @@
 2006-06-22  Tim-Philipp Müller  <tim at centricular dot net>
 
+       * ext/annodex/gstcmmldec.c:
+       * ext/annodex/gstcmmlenc.c:
+       * ext/annodex/gstcmmlparser.c:
+       * ext/dv/gstdvdec.c:
+       * ext/dv/gstdvdemux.c:
+       * ext/gdk_pixbuf/pixbufscale.c:
+       * ext/jpeg/gstjpegenc.c:
+       * ext/jpeg/gstsmokedec.c:
+       * ext/jpeg/gstsmokeenc.c:
+       * ext/libpng/gstpngdec.c:
+       * ext/libpng/gstpngenc.c:
+       * ext/speex/gstspeexenc.c:
+       * gst/alpha/gstalphacolor.c:
+       * gst/cutter/gstcutter.c:
+       * gst/debug/gstnavigationtest.c:
+       * gst/icydemux/gsticydemux.c:
+       * gst/level/gstlevel.c:
+       * gst/multipart/multipart.c:
+       * gst/rtp/gstrtpamrpay.c:
+       * gst/rtp/gstrtpdepay.c:
+       * gst/rtp/gstrtpilbcpay.c:
+       * gst/rtp/gstrtpmp4gpay.c:
+       * gst/rtp/gstrtpmp4vpay.c:
+       * gst/rtsp/gstrtpdec.c:
+       * gst/rtsp/gstrtspsrc.c:
+       * gst/udp/gstdynudpsink.c:
+       * gst/udp/gstmultiudpsink.c:
+       * gst/udp/gstudpsrc.c:
+       * gst/videobox/gstvideobox.c:
+       * gst/videofilter/gstvideoflip.c:
+         Use GST_DEBUG_CATEGORY_STATIC where possible (#342503)
+         plus two minor macro fixes.
+
+2006-06-22  Tim-Philipp Müller  <tim at centricular dot net>
+
        * gst/matroska/matroska-demux.c:
        (gst_matroska_demux_check_subtitle_buffer),
        (gst_matroska_demux_parse_blockgroup_or_simpleblock),
index 71f322f..b388488 100644 (file)
@@ -53,7 +53,7 @@
 #include "gstcmmldec.h"
 #include "gstcmmlutils.h"
 
-GST_DEBUG_CATEGORY (cmmldec);
+GST_DEBUG_CATEGORY_STATIC (cmmldec);
 #define GST_CAT_DEFAULT cmmldec
 
 #define CMML_IDENT_HEADER_SIZE 29
index fabe6ec..d8392c6 100644 (file)
@@ -47,7 +47,7 @@
 #include "gstcmmlenc.h"
 #include "gstannodex.h"
 
-GST_DEBUG_CATEGORY (cmmlenc);
+GST_DEBUG_CATEGORY_STATIC (cmmlenc);
 #define GST_CAT_DEFAULT cmmlenc
 
 #define CMML_IDENT_HEADER_SIZE 29
index 4e22fd3..abc79e7 100644 (file)
@@ -29,7 +29,7 @@
 #include "gstannodex.h"
 #include "gstcmmlutils.h"
 
-GST_DEBUG_CATEGORY (cmmlparser);
+GST_DEBUG_CATEGORY_STATIC (cmmlparser);
 #define GST_CAT_DEFAULT cmmlparser
 
 static void gst_cmml_parser_generic_error (void *ctx, const char *msg, ...);
index 7309812..501c57b 100644 (file)
@@ -64,7 +64,7 @@ GST_ELEMENT_DETAILS ("DV video decoder",
 #define DV_DEFAULT_QUALITY DV_QUALITY_BEST
 #define DV_DEFAULT_DECODE_NTH 1
 
-GST_DEBUG_CATEGORY (dvdec_debug);
+GST_DEBUG_CATEGORY_STATIC (dvdec_debug);
 #define GST_CAT_DEFAULT dvdec_debug
 
 enum
index 1d005fb..e8d7041 100644 (file)
 #define NTSC_WIDE_PAR_X         40
 #define NTSC_WIDE_PAR_Y         33
 
-GST_DEBUG_CATEGORY (dvdemux_debug);
+GST_DEBUG_CATEGORY_STATIC (dvdemux_debug);
 #define GST_CAT_DEFAULT dvdemux_debug
 
 static const GstElementDetails dvdemux_details =
index df5ba53..78da1b7 100644 (file)
@@ -36,7 +36,7 @@
 #define GST_RGB24_SIZE(width,height)  ((height)*GST_RGB24_ROWSTRIDE(width))
 
 
-GST_DEBUG_CATEGORY (pixbufscale_debug);
+GST_DEBUG_CATEGORY_STATIC (pixbufscale_debug);
 #define GST_CAT_DEFAULT pixbufscale_debug
 
 /* elementfactory information */
index 2fc16b4..ae91a8a 100644 (file)
@@ -33,7 +33,7 @@ GST_ELEMENT_DETAILS ("JPEG image encoder",
     "Encode images in JPEG format",
     "Wim Taymans <wim.taymans@tvd.be>");
 
-GST_DEBUG_CATEGORY (jpegenc_debug);
+GST_DEBUG_CATEGORY_STATIC (jpegenc_debug);
 #define GST_CAT_DEFAULT jpegenc_debug
 
 #define JPEG_DEFAULT_QUALITY 85
index 2cfc790..133763e 100644 (file)
@@ -34,7 +34,7 @@ GST_ELEMENT_DETAILS ("Smoke video decoder",
     "Decode video from Smoke format",
     "Wim Taymans <wim@fluendo.com>");
 
-GST_DEBUG_CATEGORY (smokedec_debug);
+GST_DEBUG_CATEGORY_STATIC (smokedec_debug);
 #define GST_CAT_DEFAULT smokedec_debug
 
 /* SmokeDec signals and args */
index 2ea7cf8..186911e 100644 (file)
@@ -33,7 +33,7 @@ GST_ELEMENT_DETAILS ("Smoke video encoder",
     "Encode images into the Smoke format",
     "Wim Taymans <wim@fluendo.com>");
 
-GST_DEBUG_CATEGORY (smokeenc_debug);
+GST_DEBUG_CATEGORY_STATIC (smokeenc_debug);
 #define GST_CAT_DEFAULT smokeenc_debug
 
 #define SMOKEENC_DEFAULT_MIN_QUALITY 10
index 3be0149..67f0878 100644 (file)
@@ -29,7 +29,7 @@ GST_ELEMENT_DETAILS ("PNG image decoder",
     "Decode a png video frame to a raw image",
     "Wim Taymans <wim@fluendo.com>");
 
-GST_DEBUG_CATEGORY (pngdec_debug);
+GST_DEBUG_CATEGORY_STATIC (pngdec_debug);
 #define GST_CAT_DEFAULT pngdec_debug
 
 static void gst_pngdec_base_init (gpointer g_class);
index 8736b33..dab1cdf 100644 (file)
@@ -34,7 +34,7 @@ GST_ELEMENT_DETAILS ("PNG image encoder",
     "Encode a video frame to a .png image",
     "Jeremy SIMON <jsimon13@yahoo.fr>");
 
-GST_DEBUG_CATEGORY (pngenc_debug);
+GST_DEBUG_CATEGORY_STATIC (pngenc_debug);
 #define GST_CAT_DEFAULT pngenc_debug
 
 /* Filter signals and args */
index bbd9e01..8f832a1 100644 (file)
@@ -32,7 +32,7 @@
 #include <gst/tag/tag.h>
 #include "gstspeexenc.h"
 
-GST_DEBUG_CATEGORY (speexenc_debug);
+GST_DEBUG_CATEGORY_STATIC (speexenc_debug);
 #define GST_CAT_DEFAULT speexenc_debug
 
 static GstPadTemplate *gst_speexenc_src_template, *gst_speexenc_sink_template;
index 3cf6c7c..15c26c1 100644 (file)
@@ -26,7 +26,7 @@
 
 #include <string.h>
 
-GST_DEBUG_CATEGORY (alpha_color_debug);
+GST_DEBUG_CATEGORY_STATIC (alpha_color_debug);
 #define GST_CAT_DEFAULT alpha_color_debug
 
 #define GST_TYPE_ALPHA_COLOR \
@@ -37,7 +37,7 @@ GST_DEBUG_CATEGORY (alpha_color_debug);
   (G_TYPE_CHECK_CLASS_CAST((klass),GST_TYPE_ALPHA_COLOR,GstAlphaColorClass))
 #define GST_IS_ALPHA_COLOR(obj) \
   (G_TYPE_CHECK_INSTANCE_TYPE((obj),GST_TYPE_ALPHA_COLOR))
-#define GST_IS_ALPHA_COLOR_CLASS(obj) \
+#define GST_IS_ALPHA_COLOR_CLASS(klass) \
   (G_TYPE_CHECK_CLASS_TYPE((klass),GST_TYPE_ALPHA_COLOR))
 
 typedef struct _GstAlphaColor GstAlphaColor;
index b45af6e..fc75754 100644 (file)
@@ -27,7 +27,7 @@
 #include "gstcutter.h"
 #include "math.h"
 
-GST_DEBUG_CATEGORY (cutter_debug);
+GST_DEBUG_CATEGORY_STATIC (cutter_debug);
 #define GST_CAT_DEFAULT cutter_debug
 
 #define CUTTER_DEFAULT_THRESHOLD_LEVEL    0.1
index b9c84b0..0b3e549 100644 (file)
@@ -28,7 +28,7 @@
 
 #include <gst/video/video.h>
 
-GST_DEBUG_CATEGORY (navigationtest_debug);
+GST_DEBUG_CATEGORY_STATIC (navigationtest_debug);
 #define GST_CAT_DEFAULT navigationtest_debug
 
 static const GstElementDetails navigationtest_details =
index 688e7df..1518b26 100644 (file)
@@ -56,7 +56,7 @@ GST_ELEMENT_DETAILS ("ICY tag demuxer",
 
 #define ICY_TYPE_FIND_MAX_SIZE (40*1024)
 
-GST_DEBUG_CATEGORY (icydemux_debug);
+GST_DEBUG_CATEGORY_STATIC (icydemux_debug);
 #define GST_CAT_DEFAULT (icydemux_debug)
 
 static GstStaticPadTemplate sink_factory = GST_STATIC_PAD_TEMPLATE ("sink",
index 9097e5d..b68b70c 100644 (file)
@@ -83,7 +83,7 @@
 #include "gstlevel.h"
 #include "math.h"
 
-GST_DEBUG_CATEGORY (level_debug);
+GST_DEBUG_CATEGORY_STATIC (level_debug);
 #define GST_CAT_DEFAULT level_debug
 
 static const GstElementDetails level_details = GST_ELEMENT_DETAILS ("Level",
index 871f987..c159823 100644 (file)
@@ -26,8 +26,6 @@
 extern gboolean gst_multipart_demux_plugin_init (GstPlugin * plugin);
 extern gboolean gst_multipart_mux_plugin_init (GstPlugin * plugin);
 
-GST_DEBUG_CATEGORY (vorbisdec_debug);
-
 static gboolean
 plugin_init (GstPlugin * plugin)
 {
index fd715ac..b7e15e6 100644 (file)
@@ -27,7 +27,7 @@
 
 #include "gstrtpamrpay.h"
 
-GST_DEBUG_CATEGORY (rtpamrpay_debug);
+GST_DEBUG_CATEGORY_STATIC (rtpamrpay_debug);
 #define GST_CAT_DEFAULT (rtpamrpay_debug)
 
 /* references:
index d5623e8..c309ae3 100644 (file)
@@ -20,7 +20,7 @@
 
 #include "gstrtpdepay.h"
 
-GST_DEBUG_CATEGORY (rtpdepay_debug);
+GST_DEBUG_CATEGORY_STATIC (rtpdepay_debug);
 #define GST_CAT_DEFAULT (rtpdepay_debug)
 
 /* elementfactory information */
index 3882556..cb9409c 100644 (file)
@@ -32,7 +32,7 @@ static GstElementDetails gst_rtpilbcpay_details = {
   "Philippe Kalaf <philippe.kalaf@collabora.co.uk>"
 };
 
-GST_DEBUG_CATEGORY (rtpilbcpay_debug);
+GST_DEBUG_CATEGORY_STATIC (rtpilbcpay_debug);
 #define GST_CAT_DEFAULT (rtpilbcpay_debug)
 
 static GstStaticPadTemplate gst_rtpilbcpay_sink_template =
@@ -144,8 +144,8 @@ gst_rtpilbcpay_setcaps (GstBaseRTPPayload * basertppayload, GstCaps * caps)
       gst_basertppayload_set_outcaps (basertppayload, "mode", G_TYPE_INT, mode,
       NULL);
   if (mode != rtpilbcpay->mode && rtpilbcpay->mode != -1) {
-    GST_ERROR_OBJECT (rtpilbcpay, "Mode has changed from %d to %d! \
-          Mode cannot change while streaming", rtpilbcpay->mode, mode);
+    GST_ERROR_OBJECT (rtpilbcpay, "Mode has changed from %d to %d! "
+        "Mode cannot change while streaming", rtpilbcpay->mode, mode);
     return FALSE;
   }
   rtpilbcpay->mode = mode;
index abe6089..e09195e 100644 (file)
@@ -27,7 +27,7 @@
 
 #include "gstrtpmp4gpay.h"
 
-GST_DEBUG_CATEGORY (rtpmp4gpay_debug);
+GST_DEBUG_CATEGORY_STATIC (rtpmp4gpay_debug);
 #define GST_CAT_DEFAULT (rtpmp4gpay_debug)
 
 /* elementfactory information */
index 1d4c9c1..fc091e7 100644 (file)
@@ -27,7 +27,7 @@
 
 #include "gstrtpmp4vpay.h"
 
-GST_DEBUG_CATEGORY (rtpmp4vpay_debug);
+GST_DEBUG_CATEGORY_STATIC (rtpmp4vpay_debug);
 #define GST_CAT_DEFAULT (rtpmp4vpay_debug)
 
 /* elementfactory information */
index 3991742..24054d8 100644 (file)
@@ -33,7 +33,7 @@
 
 #include "gstrtpdec.h"
 
-GST_DEBUG_CATEGORY (rtpdec_debug);
+GST_DEBUG_CATEGORY_STATIC (rtpdec_debug);
 #define GST_CAT_DEFAULT (rtpdec_debug)
 
 /* elementfactory information */
index c909415..347e1e5 100644 (file)
@@ -70,7 +70,7 @@
 #include "gstrtspsrc.h"
 #include "sdp.h"
 
-GST_DEBUG_CATEGORY (rtspsrc_debug);
+GST_DEBUG_CATEGORY_STATIC (rtspsrc_debug);
 #define GST_CAT_DEFAULT (rtspsrc_debug)
 
 /* elementfactory information */
index 661f55a..20eab16 100644 (file)
@@ -25,7 +25,7 @@
 #include "gstdynudpsink.h"
 #include <gst/netbuffer/gstnetbuffer.h>
 
-GST_DEBUG_CATEGORY (dynudpsink_debug);
+GST_DEBUG_CATEGORY_STATIC (dynudpsink_debug);
 #define GST_CAT_DEFAULT (dynudpsink_debug)
 
 static GstStaticPadTemplate sink_template = GST_STATIC_PAD_TEMPLATE ("sink",
index 0a62661..a770f1a 100644 (file)
@@ -36,7 +36,7 @@
 #include "gstudp-marshal.h"
 #include "gstmultiudpsink.h"
 
-GST_DEBUG_CATEGORY (multiudpsink_debug);
+GST_DEBUG_CATEGORY_STATIC (multiudpsink_debug);
 #define GST_CAT_DEFAULT (multiudpsink_debug)
 
 static GstStaticPadTemplate sink_template = GST_STATIC_PAD_TEMPLATE ("sink",
index 395f178..d0f09c3 100644 (file)
@@ -86,7 +86,7 @@
 #include <sys/filio.h>
 #endif
 
-GST_DEBUG_CATEGORY (udpsrc_debug);
+GST_DEBUG_CATEGORY_STATIC (udpsrc_debug);
 #define GST_CAT_DEFAULT (udpsrc_debug)
 
 /* the select call is also performed on the control sockets, that way
index 602d474..f3cb715 100644 (file)
@@ -27,7 +27,7 @@
 #include <liboil/liboil.h>
 #include <string.h>
 
-GST_DEBUG_CATEGORY (videobox_debug);
+GST_DEBUG_CATEGORY_STATIC (videobox_debug);
 #define GST_CAT_DEFAULT videobox_debug
 
 #define GST_TYPE_VIDEO_BOX \
index f9312e6..043f027 100644 (file)
@@ -60,7 +60,7 @@ enum
       /* FILL ME */
 };
 
-GST_DEBUG_CATEGORY (video_flip_debug);
+GST_DEBUG_CATEGORY_STATIC (video_flip_debug);
 #define GST_CAT_DEFAULT video_flip_debug
 
 static const GstElementDetails video_flip_details =