From 27f2c9b2555be2fda77179d16cd0c19f0ee37cfa Mon Sep 17 00:00:00 2001 From: Stefan Kost Date: Tue, 25 Apr 2006 21:39:46 +0000 Subject: Define GstElementDetails as const and also static (when defined as global) Original commit message from CVS: * ext/aalib/gstaasink.c: * ext/annodex/gstcmmldec.c: * ext/annodex/gstcmmlenc.c: * ext/cairo/gsttextoverlay.c: * ext/cairo/gsttimeoverlay.c: * ext/cdio/gstcdiocddasrc.c: * ext/dv/gstdvdec.c: * ext/dv/gstdvdemux.c: * ext/esd/esdmon.c: * ext/esd/esdsink.c: * ext/flac/gstflacenc.c: * ext/flac/gstflactag.c: * ext/gconf/gstgconfaudiosink.c: (gst_gconf_audio_sink_base_init): * ext/gconf/gstgconfaudiosrc.c: (gst_gconf_audio_src_base_init): * ext/gconf/gstgconfvideosink.c: (gst_gconf_video_sink_base_init): * ext/gconf/gstgconfvideosrc.c: (gst_gconf_video_src_base_init): * ext/gdk_pixbuf/pixbufscale.c: * ext/hal/gsthalaudiosink.c: (gst_hal_audio_sink_base_init): * ext/hal/gsthalaudiosrc.c: (gst_hal_audio_src_base_init): * ext/jpeg/gstjpegdec.c: * ext/jpeg/gstjpegenc.c: * ext/jpeg/gstsmokedec.c: * ext/jpeg/gstsmokeenc.c: * ext/libcaca/gstcacasink.c: * ext/libmng/gstmngdec.c: * ext/libmng/gstmngenc.c: * ext/libpng/gstpngdec.c: * ext/libpng/gstpngenc.c: * ext/mikmod/gstmikmod.c: * ext/raw1394/gstdv1394src.c: * ext/shout2/gstshout2.c: (gst_shout2send_init): * ext/shout2/gstshout2.h: * ext/speex/gstspeexdec.c: * ext/speex/gstspeexenc.c: * gst/alpha/gstalpha.c: * gst/alpha/gstalphacolor.c: * gst/apetag/gstapedemux.c: * gst/auparse/gstauparse.c: * gst/autodetect/gstautoaudiosink.c: (gst_auto_audio_sink_base_init): * gst/autodetect/gstautovideosink.c: (gst_auto_video_sink_base_init): * gst/avi/gstavidemux.c: (gst_avi_demux_base_init): * gst/avi/gstavimux.c: (gst_avimux_base_init): * gst/cutter/gstcutter.c: * gst/debug/breakmydata.c: * gst/debug/efence.c: * gst/debug/gstnavigationtest.c: * gst/debug/gstnavseek.c: * gst/debug/negotiation.c: * gst/debug/progressreport.c: * gst/debug/testplugin.c: * gst/effectv/gstaging.c: * gst/effectv/gstdice.c: * gst/effectv/gstedge.c: * gst/effectv/gstquark.c: * gst/effectv/gstrev.c: * gst/effectv/gstshagadelic.c: * gst/effectv/gstvertigo.c: * gst/effectv/gstwarp.c: * gst/flx/gstflxdec.c: * gst/goom/gstgoom.c: * gst/icydemux/gsticydemux.c: * gst/id3demux/gstid3demux.c: * gst/interleave/deinterleave.c: * gst/interleave/interleave.c: * gst/law/alaw-decode.c: (gst_alawdec_base_init): * gst/law/alaw-encode.c: (gst_alawenc_base_init): * gst/law/mulaw-decode.c: (gst_mulawdec_base_init): * gst/law/mulaw-encode.c: (gst_mulawenc_base_init): * gst/level/gstlevel.c: * gst/matroska/matroska-demux.c: (gst_matroska_demux_base_init): * gst/matroska/matroska-mux.c: (gst_matroska_mux_base_init): * gst/median/gstmedian.c: * gst/monoscope/gstmonoscope.c: * gst/multipart/multipartdemux.c: * gst/multipart/multipartmux.c: * gst/oldcore/gstaggregator.c: * gst/oldcore/gstfdsink.c: * gst/oldcore/gstmd5sink.c: * gst/oldcore/gstmultifilesrc.c: * gst/oldcore/gstpipefilter.c: * gst/oldcore/gstshaper.c: * gst/oldcore/gststatistics.c: * gst/rtp/gstasteriskh263.c: * gst/rtp/gstrtpL16depay.c: * gst/rtp/gstrtpL16pay.c: * gst/rtp/gstrtpamrdepay.c: * gst/rtp/gstrtpamrpay.c: * gst/rtp/gstrtpdepay.c: * gst/rtp/gstrtpgsmpay.c: * gst/rtp/gstrtph263pay.c: * gst/rtp/gstrtph263pdepay.c: * gst/rtp/gstrtph263ppay.c: * gst/rtp/gstrtpilbcdepay.c: * gst/rtp/gstrtpmp4gpay.c: * gst/rtp/gstrtpmp4vdepay.c: * gst/rtp/gstrtpmp4vpay.c: * gst/rtp/gstrtpmpadepay.c: * gst/rtp/gstrtpmpapay.c: * gst/rtp/gstrtppcmadepay.c: * gst/rtp/gstrtppcmapay.c: * gst/rtp/gstrtppcmudepay.c: * gst/rtp/gstrtppcmupay.c: * gst/rtp/gstrtpspeexdepay.c: * gst/rtp/gstrtpspeexpay.c: * gst/rtsp/gstrtpdec.c: * gst/rtsp/gstrtspsrc.c: * gst/smpte/gstsmpte.c: * gst/udp/gstdynudpsink.c: * gst/udp/gstmultiudpsink.c: * gst/udp/gstudpsink.c: * gst/udp/gstudpsrc.c: * gst/videobox/gstvideobox.c: * gst/videofilter/gstgamma.c: (gst_gamma_base_init): * gst/videofilter/gstvideobalance.c: * gst/videofilter/gstvideoflip.c: * gst/videofilter/gstvideotemplate.c: (gst_videotemplate_base_init): * gst/videomixer/videomixer.c: * gst/wavparse/gstwavparse.c: (gst_wavparse_base_init), (gst_wavparse_class_init), (gst_wavparse_dispose), (gst_wavparse_reset), (gst_wavparse_init), (gst_wavparse_perform_seek), (gst_wavparse_peek_chunk_info), (gst_wavparse_peek_chunk), (gst_wavparse_stream_headers), (gst_wavparse_parse_stream_init), (gst_wavparse_send_event), (gst_wavparse_add_src_pad), (gst_wavparse_stream_data), (gst_wavparse_chain), (gst_wavparse_srcpad_event), (gst_wavparse_sink_activate), (gst_wavparse_sink_activate_pull), (gst_wavparse_change_state): * gst/wavparse/gstwavparse.h: * sys/oss/gstossmixerelement.c: * sys/oss/gstosssink.c: * sys/oss/gstosssrc.c: * sys/osxaudio/gstosxaudioelement.c: * sys/osxaudio/gstosxaudiosink.c: * sys/osxaudio/gstosxaudiosrc.c: * sys/sunaudio/gstsunaudiomixer.c: * sys/sunaudio/gstsunaudiosink.c: Define GstElementDetails as const and also static (when defined as global) --- gst/rtp/gstasteriskh263.c | 2 +- gst/rtp/gstrtpL16depay.c | 2 +- gst/rtp/gstrtpL16pay.c | 2 +- gst/rtp/gstrtpamrdepay.c | 2 +- gst/rtp/gstrtpamrpay.c | 2 +- gst/rtp/gstrtpdepay.c | 2 +- gst/rtp/gstrtpgsmpay.c | 2 +- gst/rtp/gstrtph263pay.c | 2 +- gst/rtp/gstrtph263pdepay.c | 2 +- gst/rtp/gstrtph263ppay.c | 2 +- gst/rtp/gstrtpilbcdepay.c | 2 +- gst/rtp/gstrtpmp4gpay.c | 2 +- gst/rtp/gstrtpmp4vdepay.c | 2 +- gst/rtp/gstrtpmp4vpay.c | 2 +- gst/rtp/gstrtpmpadepay.c | 2 +- gst/rtp/gstrtpmpapay.c | 2 +- gst/rtp/gstrtppcmadepay.c | 2 +- gst/rtp/gstrtppcmapay.c | 2 +- gst/rtp/gstrtppcmudepay.c | 2 +- gst/rtp/gstrtppcmupay.c | 2 +- gst/rtp/gstrtpspeexdepay.c | 2 +- gst/rtp/gstrtpspeexpay.c | 2 +- 22 files changed, 22 insertions(+), 22 deletions(-) (limited to 'gst/rtp') diff --git a/gst/rtp/gstasteriskh263.c b/gst/rtp/gstasteriskh263.c index ff81ec71..f3f67f5e 100644 --- a/gst/rtp/gstasteriskh263.c +++ b/gst/rtp/gstasteriskh263.c @@ -43,7 +43,7 @@ typedef struct _GstAsteriskH263Header #define GST_ASTERISKH263_HEADER_LENGTH(buf) (((GstAsteriskH263Header *)(GST_BUFFER_DATA (buf)))->length) /* elementfactory information */ -static GstElementDetails gst_rtp_h263p_depaydetails = +static const GstElementDetails gst_rtp_h263p_depaydetails = GST_ELEMENT_DETAILS ("RTP packet parser", "Codec/Depayr/Network", "Extracts H263 video from RTP and encodes in Asterisk H263 format", diff --git a/gst/rtp/gstrtpL16depay.c b/gst/rtp/gstrtpL16depay.c index a46a4981..95887f5d 100644 --- a/gst/rtp/gstrtpL16depay.c +++ b/gst/rtp/gstrtpL16depay.c @@ -20,7 +20,7 @@ #include "gstrtp-common.h" /* elementfactory information */ -static GstElementDetails gst_rtp_L16depay_details = +static const GstElementDetails gst_rtp_L16depay_details = GST_ELEMENT_DETAILS ("RTP packet parser", "Codec/Depayr/Network", "Extracts raw audio from RTP packets", diff --git a/gst/rtp/gstrtpL16pay.c b/gst/rtp/gstrtpL16pay.c index fb17eb18..27e25ba7 100644 --- a/gst/rtp/gstrtpL16pay.c +++ b/gst/rtp/gstrtpL16pay.c @@ -25,7 +25,7 @@ #include "gstrtpL16pay.h" /* elementfactory information */ -static GstElementDetails gst_rtpL16pay_details = +static const GstElementDetails gst_rtpL16pay_details = GST_ELEMENT_DETAILS ("RTP RAW audio payloader", "Codec/Payloader/Network", "Payload-encodes Raw Audio into a RTP packet", diff --git a/gst/rtp/gstrtpamrdepay.c b/gst/rtp/gstrtpamrdepay.c index c6272bbe..c9df8170 100644 --- a/gst/rtp/gstrtpamrdepay.c +++ b/gst/rtp/gstrtpamrdepay.c @@ -29,7 +29,7 @@ */ /* elementfactory information */ -static GstElementDetails gst_rtp_amrdepay_details = +static const GstElementDetails gst_rtp_amrdepay_details = GST_ELEMENT_DETAILS ("RTP packet parser", "Codec/Depayr/Network", "Extracts AMR audio from RTP packets (RFC 3267)", diff --git a/gst/rtp/gstrtpamrpay.c b/gst/rtp/gstrtpamrpay.c index cf9cda6b..d85164e9 100644 --- a/gst/rtp/gstrtpamrpay.c +++ b/gst/rtp/gstrtpamrpay.c @@ -33,7 +33,7 @@ GST_DEBUG_CATEGORY (rtpamrpay_debug); */ /* elementfactory information */ -static GstElementDetails gst_rtp_amrpay_details = +static const GstElementDetails gst_rtp_amrpay_details = GST_ELEMENT_DETAILS ("RTP packet parser", "Codec/Payloader/Network", "Payload-encode AMR audio into RTP packets (RFC 3267)", diff --git a/gst/rtp/gstrtpdepay.c b/gst/rtp/gstrtpdepay.c index ee8d680c..d5623e8f 100644 --- a/gst/rtp/gstrtpdepay.c +++ b/gst/rtp/gstrtpdepay.c @@ -24,7 +24,7 @@ GST_DEBUG_CATEGORY (rtpdepay_debug); #define GST_CAT_DEFAULT (rtpdepay_debug) /* elementfactory information */ -static GstElementDetails rtpdepay_details = +static const GstElementDetails rtpdepay_details = GST_ELEMENT_DETAILS ("RTP payloader", "Codec/Depayr/Network", "Accepts raw RTP and RTCP packets and sends them forward", diff --git a/gst/rtp/gstrtpgsmpay.c b/gst/rtp/gstrtpgsmpay.c index 2c0fb963..acbd5d25 100644 --- a/gst/rtp/gstrtpgsmpay.c +++ b/gst/rtp/gstrtpgsmpay.c @@ -29,7 +29,7 @@ #include "gstrtpgsmpay.h" /* elementfactory information */ -static GstElementDetails gst_rtp_gsm_pay_details = +static const GstElementDetails gst_rtp_gsm_pay_details = GST_ELEMENT_DETAILS ("RTP GSM audio payloader", "Codec/Payloader/Network", "Payload-encodes GSM audio into a RTP packet", diff --git a/gst/rtp/gstrtph263pay.c b/gst/rtp/gstrtph263pay.c index 8615c473..a9190675 100644 --- a/gst/rtp/gstrtph263pay.c +++ b/gst/rtp/gstrtph263pay.c @@ -139,7 +139,7 @@ typedef struct _GstH263PictureLayer /* elementfactory information */ -static GstElementDetails gst_rtp_h263pay_details = +static const GstElementDetails gst_rtp_h263pay_details = GST_ELEMENT_DETAILS ("RTP packet parser", "Codec/Payloader/Network", "Payload-encodes H263 video in RTP packets (RFC 2190)", diff --git a/gst/rtp/gstrtph263pdepay.c b/gst/rtp/gstrtph263pdepay.c index a3871978..5cffdc3d 100644 --- a/gst/rtp/gstrtph263pdepay.c +++ b/gst/rtp/gstrtph263pdepay.c @@ -22,7 +22,7 @@ #include "gstrtph263pdepay.h" /* elementfactory information */ -static GstElementDetails gst_rtp_h263pdepay_details = +static const GstElementDetails gst_rtp_h263pdepay_details = GST_ELEMENT_DETAILS ("RTP packet parser", "Codec/Depayr/Network", "Extracts H263+ video from RTP packets (RFC 2429)", diff --git a/gst/rtp/gstrtph263ppay.c b/gst/rtp/gstrtph263ppay.c index 0a2d96b2..6e279829 100644 --- a/gst/rtp/gstrtph263ppay.c +++ b/gst/rtp/gstrtph263ppay.c @@ -23,7 +23,7 @@ #include "gstrtph263ppay.h" /* elementfactory information */ -static GstElementDetails gst_rtp_h263ppay_details = +static const GstElementDetails gst_rtp_h263ppay_details = GST_ELEMENT_DETAILS ("RTP packet parser", "Codec/Payloader/Network", "Payload-encodes H263+ video in RTP packets (RFC 2429)", diff --git a/gst/rtp/gstrtpilbcdepay.c b/gst/rtp/gstrtpilbcdepay.c index 1dd5bdef..d08c5b39 100644 --- a/gst/rtp/gstrtpilbcdepay.c +++ b/gst/rtp/gstrtpilbcdepay.c @@ -26,7 +26,7 @@ #include "gstrtpilbcdepay.h" /* elementfactory information */ -static GstElementDetails gst_rtp_ilbc_depay_details = +static const GstElementDetails gst_rtp_ilbc_depay_details = GST_ELEMENT_DETAILS ("RTP iLBC packet depayloader", "Codec/Depayr/Network", "Extracts iLBC audio from RTP packets", diff --git a/gst/rtp/gstrtpmp4gpay.c b/gst/rtp/gstrtpmp4gpay.c index 8ff88271..a666c016 100644 --- a/gst/rtp/gstrtpmp4gpay.c +++ b/gst/rtp/gstrtpmp4gpay.c @@ -26,7 +26,7 @@ GST_DEBUG_CATEGORY (rtpmp4gpay_debug); #define GST_CAT_DEFAULT (rtpmp4gpay_debug) /* elementfactory information */ -static GstElementDetails gst_rtp_mp4gpay_details = +static const GstElementDetails gst_rtp_mp4gpay_details = GST_ELEMENT_DETAILS ("RTP packet parser", "Codec/Payloader/Network", "Payload MPEG4 elementary streams as RTP packets (RFC 3640)", diff --git a/gst/rtp/gstrtpmp4vdepay.c b/gst/rtp/gstrtpmp4vdepay.c index 5106916a..16597db1 100644 --- a/gst/rtp/gstrtpmp4vdepay.c +++ b/gst/rtp/gstrtpmp4vdepay.c @@ -22,7 +22,7 @@ #include "gstrtpmp4vdepay.h" /* elementfactory information */ -static GstElementDetails gst_rtp_mp4vdepay_details = +static const GstElementDetails gst_rtp_mp4vdepay_details = GST_ELEMENT_DETAILS ("RTP packet parser", "Codec/Depayr/Network", "Extracts MPEG4 video from RTP packets (RFC 3016)", diff --git a/gst/rtp/gstrtpmp4vpay.c b/gst/rtp/gstrtpmp4vpay.c index 98c0455b..ad13350d 100644 --- a/gst/rtp/gstrtpmp4vpay.c +++ b/gst/rtp/gstrtpmp4vpay.c @@ -26,7 +26,7 @@ GST_DEBUG_CATEGORY (rtpmp4vpay_debug); #define GST_CAT_DEFAULT (rtpmp4vpay_debug) /* elementfactory information */ -static GstElementDetails gst_rtp_mp4vpay_details = +static const GstElementDetails gst_rtp_mp4vpay_details = GST_ELEMENT_DETAILS ("RTP packet parser", "Codec/Payloader/Network", "Payode MPEG4 video as RTP packets (RFC 3016)", diff --git a/gst/rtp/gstrtpmpadepay.c b/gst/rtp/gstrtpmpadepay.c index 9b814c08..5b8b43f2 100644 --- a/gst/rtp/gstrtpmpadepay.c +++ b/gst/rtp/gstrtpmpadepay.c @@ -22,7 +22,7 @@ #include "gstrtpmpadepay.h" /* elementfactory information */ -static GstElementDetails gst_rtp_mpadepay_details = +static const GstElementDetails gst_rtp_mpadepay_details = GST_ELEMENT_DETAILS ("RTP packet parser", "Codec/Depayr/Network", "Extracts MPEG audio from RTP packets (RFC 2038)", diff --git a/gst/rtp/gstrtpmpapay.c b/gst/rtp/gstrtpmpapay.c index b15d55ba..49877fac 100644 --- a/gst/rtp/gstrtpmpapay.c +++ b/gst/rtp/gstrtpmpapay.c @@ -23,7 +23,7 @@ #include "gstrtpmpapay.h" /* elementfactory information */ -static GstElementDetails gst_rtp_mpapay_details = +static const GstElementDetails gst_rtp_mpapay_details = GST_ELEMENT_DETAILS ("RTP packet parser", "Codec/Payloader/Network", "Payode MPEG audio as RTP packets (RFC 2038)", diff --git a/gst/rtp/gstrtppcmadepay.c b/gst/rtp/gstrtppcmadepay.c index e67f814b..188c7008 100644 --- a/gst/rtp/gstrtppcmadepay.c +++ b/gst/rtp/gstrtppcmadepay.c @@ -23,7 +23,7 @@ #include "gstrtppcmadepay.h" /* elementfactory information */ -static GstElementDetails gst_rtp_pcmadepay_details = +static const GstElementDetails gst_rtp_pcmadepay_details = GST_ELEMENT_DETAILS ("RTP packet parser", "Codec/Depayr/Network", "Extracts PCMA audio from RTP packets", diff --git a/gst/rtp/gstrtppcmapay.c b/gst/rtp/gstrtppcmapay.c index 439efaa9..b20d0764 100644 --- a/gst/rtp/gstrtppcmapay.c +++ b/gst/rtp/gstrtppcmapay.c @@ -25,7 +25,7 @@ #include "gstrtppcmapay.h" /* elementfactory information */ -static GstElementDetails gst_rtp_pcma_pay_details = +static const GstElementDetails gst_rtp_pcma_pay_details = GST_ELEMENT_DETAILS ("RTP packet parser", "Codec/Payloader/Network", "Payload-encodes PCMA audio into a RTP packet", diff --git a/gst/rtp/gstrtppcmudepay.c b/gst/rtp/gstrtppcmudepay.c index 0b6a208b..dcdb992e 100644 --- a/gst/rtp/gstrtppcmudepay.c +++ b/gst/rtp/gstrtppcmudepay.c @@ -23,7 +23,7 @@ #include "gstrtppcmudepay.h" /* elementfactory information */ -static GstElementDetails gst_rtp_pcmudepay_details = +static const GstElementDetails gst_rtp_pcmudepay_details = GST_ELEMENT_DETAILS ("RTP packet parser", "Codec/Depayr/Network", "Extracts PCMU audio from RTP packets", diff --git a/gst/rtp/gstrtppcmupay.c b/gst/rtp/gstrtppcmupay.c index ffb220b5..6389207a 100644 --- a/gst/rtp/gstrtppcmupay.c +++ b/gst/rtp/gstrtppcmupay.c @@ -25,7 +25,7 @@ #include "gstrtppcmupay.h" /* elementfactory information */ -static GstElementDetails gst_rtp_pcmu_pay_details = +static const GstElementDetails gst_rtp_pcmu_pay_details = GST_ELEMENT_DETAILS ("RTP packet parser", "Codec/Payloader/Network", "Payload-encodes PCMU audio into a RTP packet", diff --git a/gst/rtp/gstrtpspeexdepay.c b/gst/rtp/gstrtpspeexdepay.c index 84d08c25..c5828a0e 100644 --- a/gst/rtp/gstrtpspeexdepay.c +++ b/gst/rtp/gstrtpspeexdepay.c @@ -21,7 +21,7 @@ #include "gstrtpspeexdepay.h" /* elementfactory information */ -static GstElementDetails gst_rtp_speexdepay_details = +static const GstElementDetails gst_rtp_speexdepay_details = GST_ELEMENT_DETAILS ("RTP packet parser", "Codec/Depayr/Network", "Extracts Speex audio from RTP packets", diff --git a/gst/rtp/gstrtpspeexpay.c b/gst/rtp/gstrtpspeexpay.c index c1f37277..30c4b8fd 100644 --- a/gst/rtp/gstrtpspeexpay.c +++ b/gst/rtp/gstrtpspeexpay.c @@ -23,7 +23,7 @@ #include "gstrtpspeexpay.h" /* elementfactory information */ -static GstElementDetails gst_rtp_speex_pay_details = +static const GstElementDetails gst_rtp_speex_pay_details = GST_ELEMENT_DETAILS ("RTP packet parser", "Codec/Payloader/Network", "Payload-encodes Speex audio into a RTP packet", -- cgit