From e972defd3ed2095c4f621cdbd2fea50835380ef8 Mon Sep 17 00:00:00 2001 From: Stefan Kost Date: Fri, 28 Apr 2006 19:46:37 +0000 Subject: [PATCH] make GstElementDetails const Original commit message from CVS: * ext/alsa/gstalsamixerelement.c: * ext/alsa/gstalsasrc.c: * ext/cdparanoia/gstcdparanoiasrc.c: * ext/gnomevfs/gstgnomevfssink.c: * ext/gnomevfs/gstgnomevfssrc.c: * ext/ogg/gstoggdemux.c: * ext/ogg/gstoggmux.c: * ext/ogg/gstoggparse.c: * ext/ogg/gstogmparse.c: * ext/pango/gstclockoverlay.c: * ext/pango/gsttextoverlay.c: * ext/pango/gsttextrender.c: * ext/pango/gsttimeoverlay.c: * ext/theora/theoradec.c: * ext/theora/theoraenc.c: * ext/vorbis/vorbisdec.c: * ext/vorbis/vorbisenc.c: * gst-libs/gst/audio/gstaudiofilter.c: * gst-libs/gst/audio/gstaudiofiltertemplate.c: * gst/audioconvert/gstaudioconvert.c: * gst/audiorate/gstaudiorate.c: * gst/audioresample/gstaudioresample.c: * gst/audiotestsrc/gstaudiotestsrc.c: * gst/ffmpegcolorspace/gstffmpegcolorspace.c: * gst/playback/gstdecodebin.c: * gst/playback/gstplaybin.c: * gst/playback/gststreamselector.c: * gst/subparse/gstsubparse.c: * gst/tcp/gstmultifdsink.c: * gst/tcp/gsttcpclientsink.c: * gst/tcp/gsttcpclientsrc.c: * gst/tcp/gsttcpserversink.c: * gst/tcp/gsttcpserversrc.c: * gst/typefind/gsttypefindfunctions.c: (plugin_init): * gst/videorate/gstvideorate.c: * gst/videoscale/gstvideoscale.c: * gst/videotestsrc/gstvideotestsrc.c: * gst/volume/gstvolume.c: * sys/v4l/gstv4ljpegsrc.c: * sys/v4l/gstv4lmjpegsink.c: * sys/v4l/gstv4lmjpegsrc.c: * sys/v4l/gstv4lsrc.c: * sys/ximage/ximagesink.c: * sys/xvimage/xvimagesink.c: * tests/check/libs/cddabasesrc.c: make GstElementDetails const --- ChangeLog | 49 +++++++++++++++++++++ ext/alsa/gstalsamixerelement.c | 2 +- ext/alsa/gstalsasrc.c | 2 +- ext/cdparanoia/gstcdparanoiasrc.c | 2 +- ext/gnomevfs/gstgnomevfssink.c | 2 +- ext/gnomevfs/gstgnomevfssrc.c | 2 +- ext/ogg/gstoggdemux.c | 2 +- ext/ogg/gstoggmux.c | 3 +- ext/ogg/gstoggparse.c | 2 +- ext/ogg/gstogmparse.c | 6 +-- ext/pango/gstclockoverlay.c | 2 +- ext/pango/gsttextoverlay.c | 2 +- ext/pango/gsttextrender.c | 2 +- ext/pango/gsttimeoverlay.c | 2 +- ext/theora/theoradec.c | 2 +- ext/theora/theoraenc.c | 2 +- ext/vorbis/vorbisdec.c | 2 +- ext/vorbis/vorbisenc.c | 2 +- gst-libs/gst/audio/gstaudiofilter.c | 2 +- gst-libs/gst/audio/gstaudiofiltertemplate.c | 2 +- gst/audioconvert/gstaudioconvert.c | 2 +- gst/audiorate/gstaudiorate.c | 2 +- gst/audioresample/gstaudioresample.c | 2 +- gst/audiotestsrc/gstaudiotestsrc.c | 2 +- gst/ffmpegcolorspace/gstffmpegcolorspace.c | 2 +- gst/playback/gstdecodebin.c | 2 +- gst/playback/gstplaybin.c | 2 +- gst/playback/gststreamselector.c | 2 +- gst/subparse/gstsubparse.c | 2 +- gst/tcp/gstmultifdsink.c | 2 +- gst/tcp/gsttcpclientsink.c | 2 +- gst/tcp/gsttcpclientsrc.c | 2 +- gst/tcp/gsttcpserversink.c | 2 +- gst/tcp/gsttcpserversrc.c | 2 +- gst/typefind/gsttypefindfunctions.c | 8 +++- gst/videorate/gstvideorate.c | 2 +- gst/videoscale/gstvideoscale.c | 2 +- gst/videotestsrc/gstvideotestsrc.c | 2 +- gst/volume/gstvolume.c | 2 +- sys/v4l/gstv4ljpegsrc.c | 2 +- sys/v4l/gstv4lmjpegsink.c | 2 +- sys/v4l/gstv4lmjpegsrc.c | 2 +- sys/v4l/gstv4lsrc.c | 2 +- sys/ximage/ximagesink.c | 2 +- sys/xvimage/xvimagesink.c | 2 +- tests/check/libs/cddabasesrc.c | 2 +- 46 files changed, 102 insertions(+), 48 deletions(-) diff --git a/ChangeLog b/ChangeLog index cee5882d4d..9483bd0f96 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,52 @@ +2006-04-28 Stefan Kost + + * ext/alsa/gstalsamixerelement.c: + * ext/alsa/gstalsasrc.c: + * ext/cdparanoia/gstcdparanoiasrc.c: + * ext/gnomevfs/gstgnomevfssink.c: + * ext/gnomevfs/gstgnomevfssrc.c: + * ext/ogg/gstoggdemux.c: + * ext/ogg/gstoggmux.c: + * ext/ogg/gstoggparse.c: + * ext/ogg/gstogmparse.c: + * ext/pango/gstclockoverlay.c: + * ext/pango/gsttextoverlay.c: + * ext/pango/gsttextrender.c: + * ext/pango/gsttimeoverlay.c: + * ext/theora/theoradec.c: + * ext/theora/theoraenc.c: + * ext/vorbis/vorbisdec.c: + * ext/vorbis/vorbisenc.c: + * gst-libs/gst/audio/gstaudiofilter.c: + * gst-libs/gst/audio/gstaudiofiltertemplate.c: + * gst/audioconvert/gstaudioconvert.c: + * gst/audiorate/gstaudiorate.c: + * gst/audioresample/gstaudioresample.c: + * gst/audiotestsrc/gstaudiotestsrc.c: + * gst/ffmpegcolorspace/gstffmpegcolorspace.c: + * gst/playback/gstdecodebin.c: + * gst/playback/gstplaybin.c: + * gst/playback/gststreamselector.c: + * gst/subparse/gstsubparse.c: + * gst/tcp/gstmultifdsink.c: + * gst/tcp/gsttcpclientsink.c: + * gst/tcp/gsttcpclientsrc.c: + * gst/tcp/gsttcpserversink.c: + * gst/tcp/gsttcpserversrc.c: + * gst/typefind/gsttypefindfunctions.c: (plugin_init): + * gst/videorate/gstvideorate.c: + * gst/videoscale/gstvideoscale.c: + * gst/videotestsrc/gstvideotestsrc.c: + * gst/volume/gstvolume.c: + * sys/v4l/gstv4ljpegsrc.c: + * sys/v4l/gstv4lmjpegsink.c: + * sys/v4l/gstv4lmjpegsrc.c: + * sys/v4l/gstv4lsrc.c: + * sys/ximage/ximagesink.c: + * sys/xvimage/xvimagesink.c: + * tests/check/libs/cddabasesrc.c: + make GstElementDetails const + 2006-04-28 Stefan Kost * gst/adder/gstadder.c: (gst_adder_setcaps), (gst_adder_src_event), diff --git a/ext/alsa/gstalsamixerelement.c b/ext/alsa/gstalsamixerelement.c index 89d6f6dee1..36fe2b6558 100644 --- a/ext/alsa/gstalsamixerelement.c +++ b/ext/alsa/gstalsamixerelement.c @@ -36,7 +36,7 @@ enum }; -static GstElementDetails gst_alsa_mixer_element_details = +static const GstElementDetails gst_alsa_mixer_element_details = GST_ELEMENT_DETAILS ("Alsa mixer", "Generic/Audio", "Control sound input and output levels with ALSA", diff --git a/ext/alsa/gstalsasrc.c b/ext/alsa/gstalsasrc.c index e1dacceabe..8996ab4ca0 100644 --- a/ext/alsa/gstalsasrc.c +++ b/ext/alsa/gstalsasrc.c @@ -56,7 +56,7 @@ #include /* elementfactory information */ -static GstElementDetails gst_alsasrc_details = +static const GstElementDetails gst_alsasrc_details = GST_ELEMENT_DETAILS ("Audio source (ALSA)", "Source/Audio", "Read from a sound card via ALSA", diff --git a/ext/cdparanoia/gstcdparanoiasrc.c b/ext/cdparanoia/gstcdparanoiasrc.c index c408d4de6b..aa7da14615 100644 --- a/ext/cdparanoia/gstcdparanoiasrc.c +++ b/ext/cdparanoia/gstcdparanoiasrc.c @@ -68,7 +68,7 @@ static gboolean gst_cd_paranoia_src_open (GstCddaBaseSrc * src, const gchar * device); static void gst_cd_paranoia_src_close (GstCddaBaseSrc * src); -static GstElementDetails cdparanoia_details = +static const GstElementDetails cdparanoia_details = GST_ELEMENT_DETAILS ("CD Audio (cdda) Source, Paranoia IV", "Source/File", "Read audio from CD in paranoid mode", diff --git a/ext/gnomevfs/gstgnomevfssink.c b/ext/gnomevfs/gstgnomevfssink.c index c1a1961baf..51c7d74d66 100644 --- a/ext/gnomevfs/gstgnomevfssink.c +++ b/ext/gnomevfs/gstgnomevfssink.c @@ -73,7 +73,7 @@ #include #include -static GstElementDetails gst_gnome_vfs_sink_details = +static const GstElementDetails gst_gnome_vfs_sink_details = GST_ELEMENT_DETAILS ("GnomeVFS Sink", "Sink/File", "Write a stream to a GnomeVFS URI", diff --git a/ext/gnomevfs/gstgnomevfssrc.c b/ext/gnomevfs/gstgnomevfssrc.c index 699b9f6b50..9886eb66aa 100644 --- a/ext/gnomevfs/gstgnomevfssrc.c +++ b/ext/gnomevfs/gstgnomevfssrc.c @@ -96,7 +96,7 @@ GST_DEBUG_CATEGORY_STATIC (gnomevfssrc_debug); #define GST_CAT_DEFAULT gnomevfssrc_debug -static GstElementDetails gst_gnome_vfs_src_details = +static const GstElementDetails gst_gnome_vfs_src_details = GST_ELEMENT_DETAILS ("GnomeVFS Source", "Source/File", "Read from any GnomeVFS-supported file", diff --git a/ext/ogg/gstoggdemux.c b/ext/ogg/gstoggdemux.c index 71a05c9de6..dbdc887fb2 100644 --- a/ext/ogg/gstoggdemux.c +++ b/ext/ogg/gstoggdemux.c @@ -27,7 +27,7 @@ #include #include -static GstElementDetails gst_ogg_demux_details = +static const GstElementDetails gst_ogg_demux_details = GST_ELEMENT_DETAILS ("Ogg demuxer", "Codec/Demuxer", "demux ogg streams (info about ogg: http://xiph.org)", diff --git a/ext/ogg/gstoggmux.c b/ext/ogg/gstoggmux.c index 58c58f4091..7f5dcf7ab9 100644 --- a/ext/ogg/gstoggmux.c +++ b/ext/ogg/gstoggmux.c @@ -138,7 +138,8 @@ struct _GstOggMuxClass }; /* elementfactory information */ -static GstElementDetails gst_ogg_mux_details = GST_ELEMENT_DETAILS ("Ogg muxer", +static const GstElementDetails gst_ogg_mux_details = +GST_ELEMENT_DETAILS ("Ogg muxer", "Codec/Muxer", "mux ogg streams (info about ogg: http://xiph.org)", "Wim Taymans "); diff --git a/ext/ogg/gstoggparse.c b/ext/ogg/gstoggparse.c index 507f82cfdc..0a9418c53d 100644 --- a/ext/ogg/gstoggparse.c +++ b/ext/ogg/gstoggparse.c @@ -36,7 +36,7 @@ #include #include -static GstElementDetails gst_ogg_parse_details = +static const GstElementDetails gst_ogg_parse_details = GST_ELEMENT_DETAILS ("Ogg parser", "Codec/Parser", "parse ogg streams into pages (info about ogg: http://xiph.org)", diff --git a/ext/ogg/gstogmparse.c b/ext/ogg/gstogmparse.c index b75a51f939..d903838e9d 100644 --- a/ext/ogg/gstogmparse.c +++ b/ext/ogg/gstogmparse.c @@ -55,19 +55,19 @@ GST_DEBUG_CATEGORY_STATIC (gst_ogm_parse_debug); #define GST_OGM_PARSE_GET_CLASS(obj) \ (G_TYPE_INSTANCE_GET_CLASS ((obj), GST_TYPE_OGM_PARSE, GstOgmParseClass)) -static GstElementDetails gst_ogm_audio_parse_details = +static const GstElementDetails gst_ogm_audio_parse_details = GST_ELEMENT_DETAILS ("OGM audio stream parser", "Codec/Decoder/Audio", "parse an OGM audio header and stream", "Ronald Bultje "); -static GstElementDetails gst_ogm_video_parse_details = +static const GstElementDetails gst_ogm_video_parse_details = GST_ELEMENT_DETAILS ("OGM video stream parser", "Codec/Decoder/Video", "parse an OGM video header and stream", "Ronald Bultje "); -static GstElementDetails gst_ogm_text_parse_details = +static const GstElementDetails gst_ogm_text_parse_details = GST_ELEMENT_DETAILS ("OGM text stream parser", "Codec/Decoder/Subtitle", "parse an OGM text header and stream", diff --git a/ext/pango/gstclockoverlay.c b/ext/pango/gstclockoverlay.c index b00d0b0887..1cd071f2f9 100644 --- a/ext/pango/gstclockoverlay.c +++ b/ext/pango/gstclockoverlay.c @@ -57,7 +57,7 @@ #include #include -static GstElementDetails clock_overlay_details = +static const GstElementDetails clock_overlay_details = GST_ELEMENT_DETAILS ("Clock overlay", "Filter/Editor/Video", "Overlays the current clock time on a video stream", diff --git a/ext/pango/gsttextoverlay.c b/ext/pango/gsttextoverlay.c index 7738b7f459..0239da486a 100644 --- a/ext/pango/gsttextoverlay.c +++ b/ext/pango/gsttextoverlay.c @@ -93,7 +93,7 @@ GST_DEBUG_CATEGORY (pango_debug); #define GST_CAT_DEFAULT pango_debug -static GstElementDetails text_overlay_details = +static const GstElementDetails text_overlay_details = GST_ELEMENT_DETAILS ("Text overlay", "Filter/Editor/Video", "Adds text strings on top of a video buffer", diff --git a/ext/pango/gsttextrender.c b/ext/pango/gsttextrender.c index 990b89b62b..067b8a420d 100644 --- a/ext/pango/gsttextrender.c +++ b/ext/pango/gsttextrender.c @@ -54,7 +54,7 @@ GST_DEBUG_CATEGORY_EXTERN (pango_debug); #define GST_CAT_DEFAULT pango_debug -static GstElementDetails text_render_details = +static const GstElementDetails text_render_details = GST_ELEMENT_DETAILS ("Text renderer", "Filter/Editor/Video", "Renders a text string to an image bitmap", diff --git a/ext/pango/gsttimeoverlay.c b/ext/pango/gsttimeoverlay.c index 93a9b905f7..640ddb3e93 100644 --- a/ext/pango/gsttimeoverlay.c +++ b/ext/pango/gsttimeoverlay.c @@ -57,7 +57,7 @@ #include -static GstElementDetails time_overlay_details = +static const GstElementDetails time_overlay_details = GST_ELEMENT_DETAILS ("Time overlay", "Filter/Editor/Video", "Overlays buffer time stamps on a video stream", diff --git a/ext/theora/theoradec.c b/ext/theora/theoradec.c index d1c7b0995b..c60fa342e5 100644 --- a/ext/theora/theoradec.c +++ b/ext/theora/theoradec.c @@ -58,7 +58,7 @@ enum ARG_CROP }; -static GstElementDetails theora_dec_details = +static const GstElementDetails theora_dec_details = GST_ELEMENT_DETAILS ("Theora video decoder", "Codec/Decoder/Video", "decode raw theora streams to raw YUV video", diff --git a/ext/theora/theoraenc.c b/ext/theora/theoraenc.c index ddda008266..c6a1cc3a3f 100644 --- a/ext/theora/theoraenc.c +++ b/ext/theora/theoraenc.c @@ -151,7 +151,7 @@ granulepos_to_timestamp (GstTheoraEnc * theoraenc, ogg_int64_t granulepos) theoraenc->info.fps_numerator); } -static GstElementDetails theora_enc_details = +static const GstElementDetails theora_enc_details = GST_ELEMENT_DETAILS ("Theora video encoder", "Codec/Encoder/Video", "encode raw YUV video to a theora stream", diff --git a/ext/vorbis/vorbisdec.c b/ext/vorbis/vorbisdec.c index fb969ca027..e6bd56aef7 100644 --- a/ext/vorbis/vorbisdec.c +++ b/ext/vorbis/vorbisdec.c @@ -54,7 +54,7 @@ GST_DEBUG_CATEGORY_EXTERN (vorbisdec_debug); #define GST_CAT_DEFAULT vorbisdec_debug -static GstElementDetails vorbis_dec_details = +static const GstElementDetails vorbis_dec_details = GST_ELEMENT_DETAILS ("Vorbis audio decoder", "Codec/Decoder/Audio", "decode raw vorbis streams to float audio", diff --git a/ext/vorbis/vorbisenc.c b/ext/vorbis/vorbisenc.c index 072af43b67..c5cc86a830 100644 --- a/ext/vorbis/vorbisenc.c +++ b/ext/vorbis/vorbisenc.c @@ -67,7 +67,7 @@ static GstPadTemplate *gst_vorbis_enc_src_template, *gst_vorbis_enc_sink_template; /* elementfactory information */ -GstElementDetails vorbisenc_details = +static const GstElementDetails vorbisenc_details = GST_ELEMENT_DETAILS ("Vorbis audio encoder", "Codec/Encoder/Audio", "Encodes audio in Vorbis format", diff --git a/gst-libs/gst/audio/gstaudiofilter.c b/gst-libs/gst/audio/gstaudiofilter.c index 177d84e7f4..58eb5ee0a7 100644 --- a/gst-libs/gst/audio/gstaudiofilter.c +++ b/gst-libs/gst/audio/gstaudiofilter.c @@ -27,7 +27,7 @@ #include -static GstElementDetails audio_filter_details = +static const GstElementDetails audio_filter_details = GST_ELEMENT_DETAILS ("Audio filter base class", "Filter/Effect/Audio", "Filters audio", diff --git a/gst-libs/gst/audio/gstaudiofiltertemplate.c b/gst-libs/gst/audio/gstaudiofiltertemplate.c index 1c63522502..ce0cef3474 100644 --- a/gst-libs/gst/audio/gstaudiofiltertemplate.c +++ b/gst-libs/gst/audio/gstaudiofiltertemplate.c @@ -34,7 +34,7 @@ #include #include -static GstElementDetails audio_filter_template_details = +static const GstElementDetails audio_filter_template_details = GST_ELEMENT_DETAILS ("Audio filter template", "Filter/Effect/Audio", "Filters audio", diff --git a/gst/audioconvert/gstaudioconvert.c b/gst/audioconvert/gstaudioconvert.c index fea73e4dc0..c35e49ccf4 100644 --- a/gst/audioconvert/gstaudioconvert.c +++ b/gst/audioconvert/gstaudioconvert.c @@ -74,7 +74,7 @@ GST_DEBUG_CATEGORY (audio_convert_debug); /*** DEFINITIONS **************************************************************/ -static GstElementDetails audio_convert_details = +static const GstElementDetails audio_convert_details = GST_ELEMENT_DETAILS ("Audio converter", "Filter/Converter/Audio", "Convert audio to different formats", diff --git a/gst/audiorate/gstaudiorate.c b/gst/audiorate/gstaudiorate.c index 11e73a6e68..e24be8053f 100644 --- a/gst/audiorate/gstaudiorate.c +++ b/gst/audiorate/gstaudiorate.c @@ -64,7 +64,7 @@ struct _GstAudioRateClass }; /* elementfactory information */ -static GstElementDetails audio_rate_details = +static const GstElementDetails audio_rate_details = GST_ELEMENT_DETAILS ("Audio rate adjuster", "Filter/Effect/Audio", "Drops/duplicates/adjusts timestamps on audio samples to make a perfect stream", diff --git a/gst/audioresample/gstaudioresample.c b/gst/audioresample/gstaudioresample.c index 0701586f0f..3304f274ee 100644 --- a/gst/audioresample/gstaudioresample.c +++ b/gst/audioresample/gstaudioresample.c @@ -54,7 +54,7 @@ GST_DEBUG_CATEGORY (audioresample_debug); #define GST_CAT_DEFAULT audioresample_debug /* elementfactory information */ -static GstElementDetails gst_audioresample_details = +static const GstElementDetails gst_audioresample_details = GST_ELEMENT_DETAILS ("Audio scaler", "Filter/Converter/Audio", "Resample audio", diff --git a/gst/audiotestsrc/gstaudiotestsrc.c b/gst/audiotestsrc/gstaudiotestsrc.c index 2fa3081a3e..52c47e7126 100644 --- a/gst/audiotestsrc/gstaudiotestsrc.c +++ b/gst/audiotestsrc/gstaudiotestsrc.c @@ -64,7 +64,7 @@ #define M_PI_M2 ( M_PI + M_PI ) -static GstElementDetails gst_audio_test_src_details = +static const GstElementDetails gst_audio_test_src_details = GST_ELEMENT_DETAILS ("Audio test source", "Source/Audio", "Creates audio test signals of given frequency and volume", diff --git a/gst/ffmpegcolorspace/gstffmpegcolorspace.c b/gst/ffmpegcolorspace/gstffmpegcolorspace.c index 13f5642a41..bfe0b7e069 100644 --- a/gst/ffmpegcolorspace/gstffmpegcolorspace.c +++ b/gst/ffmpegcolorspace/gstffmpegcolorspace.c @@ -43,7 +43,7 @@ GST_DEBUG_CATEGORY (ffmpegcolorspace_debug); #define GST_CAT_DEFAULT ffmpegcolorspace_debug /* elementfactory information */ -static GstElementDetails ffmpegcsp_details = +static const GstElementDetails ffmpegcsp_details = GST_ELEMENT_DETAILS ("FFMPEG Colorspace converter", "Filter/Converter/Video", "Converts video from one colorspace to another", diff --git a/gst/playback/gstdecodebin.c b/gst/playback/gstdecodebin.c index 580c1f9ce8..bfb34221ce 100644 --- a/gst/playback/gstdecodebin.c +++ b/gst/playback/gstdecodebin.c @@ -142,7 +142,7 @@ static void queue_filled_cb (GstElement * queue, GstDecodeBin * decode_bin); static GstElementClass *parent_class; static guint gst_decode_bin_signals[LAST_SIGNAL] = { 0 }; -static GstElementDetails gst_decode_bin_details = +static const GstElementDetails gst_decode_bin_details = GST_ELEMENT_DETAILS ("Decoder Bin", "Generic/Bin/Decoder", "Autoplug and decode to raw media", diff --git a/gst/playback/gstplaybin.c b/gst/playback/gstplaybin.c index d6336b78dd..9ac43e8ba7 100644 --- a/gst/playback/gstplaybin.c +++ b/gst/playback/gstplaybin.c @@ -128,7 +128,7 @@ static GstElementClass *parent_class; //static guint gst_play_bin_signals[LAST_SIGNAL] = { 0 }; -static GstElementDetails gst_play_bin_details = +static const GstElementDetails gst_play_bin_details = GST_ELEMENT_DETAILS ("Player Bin", "Generic/Bin/Player", "Autoplug and play media from an uri", diff --git a/gst/playback/gststreamselector.c b/gst/playback/gststreamselector.c index 672964fa6e..da021d8072 100644 --- a/gst/playback/gststreamselector.c +++ b/gst/playback/gststreamselector.c @@ -37,7 +37,7 @@ GST_DEBUG_CATEGORY_STATIC (stream_selector_debug); #define GST_CAT_DEFAULT stream_selector_debug -static GstElementDetails gst_stream_selector_details = +static const GstElementDetails gst_stream_selector_details = GST_ELEMENT_DETAILS ("StreamSelector", "Generic", "N-to-1 input stream_selectoring", diff --git a/gst/subparse/gstsubparse.c b/gst/subparse/gstsubparse.c index 36481a44e0..60ad39f594 100644 --- a/gst/subparse/gstsubparse.c +++ b/gst/subparse/gstsubparse.c @@ -33,7 +33,7 @@ GST_DEBUG_CATEGORY_STATIC (sub_parse_debug); #define GST_CAT_DEFAULT sub_parse_debug -static GstElementDetails sub_parse_details = +static const GstElementDetails sub_parse_details = GST_ELEMENT_DETAILS ("Subtitle parser", "Codec/Parser/Subtitle", "Parses subtitle (.sub) files into text streams", diff --git a/gst/tcp/gstmultifdsink.c b/gst/tcp/gstmultifdsink.c index 4b444dede3..6e71b458c9 100644 --- a/gst/tcp/gstmultifdsink.c +++ b/gst/tcp/gstmultifdsink.c @@ -127,7 +127,7 @@ G_STMT_START { \ } G_STMT_END /* elementfactory information */ -static GstElementDetails gst_multi_fd_sink_details = +static const GstElementDetails gst_multi_fd_sink_details = GST_ELEMENT_DETAILS ("Multi filedescriptor sink", "Sink/Network", "Send data to multiple filedescriptors", diff --git a/gst/tcp/gsttcpclientsink.c b/gst/tcp/gsttcpclientsink.c index 94bbc65cad..d53a4dfdc7 100644 --- a/gst/tcp/gsttcpclientsink.c +++ b/gst/tcp/gsttcpclientsink.c @@ -28,7 +28,7 @@ #include /* memset */ /* elementfactory information */ -static GstElementDetails gst_tcp_client_sink_details = +static const GstElementDetails gst_tcp_client_sink_details = GST_ELEMENT_DETAILS ("TCP client sink", "Sink/Network", "Send data as a client over the network via TCP", diff --git a/gst/tcp/gsttcpclientsrc.c b/gst/tcp/gsttcpclientsrc.c index 90887f8877..d5617753df 100644 --- a/gst/tcp/gsttcpclientsrc.c +++ b/gst/tcp/gsttcpclientsrc.c @@ -56,7 +56,7 @@ GST_DEBUG_CATEGORY (tcpclientsrc_debug); #define MAX_READ_SIZE 4 * 1024 -static GstElementDetails gst_tcp_client_src_details = +static const GstElementDetails gst_tcp_client_src_details = GST_ELEMENT_DETAILS ("TCP client source", "Source/Network", "Receive data as a client over the network via TCP", diff --git a/gst/tcp/gsttcpserversink.c b/gst/tcp/gsttcpserversink.c index fa04971a56..b6d52b8fd2 100644 --- a/gst/tcp/gsttcpserversink.c +++ b/gst/tcp/gsttcpserversink.c @@ -44,7 +44,7 @@ #define TCP_BACKLOG 5 /* elementfactory information */ -static GstElementDetails gst_tcp_server_sink_details = +static const GstElementDetails gst_tcp_server_sink_details = GST_ELEMENT_DETAILS ("TCP server sink", "Sink/Network", "Send data as a server over the network via TCP", diff --git a/gst/tcp/gsttcpserversrc.c b/gst/tcp/gsttcpserversrc.c index 2cb5897f86..02c9cdbdf2 100644 --- a/gst/tcp/gsttcpserversrc.c +++ b/gst/tcp/gsttcpserversrc.c @@ -57,7 +57,7 @@ GST_DEBUG_CATEGORY (tcpserversrc_debug); #define TCP_BACKLOG 1 /* client connection queue */ -static GstElementDetails gst_tcp_server_src_details = +static const GstElementDetails gst_tcp_server_src_details = GST_ELEMENT_DETAILS ("TCP server source", "Source/Network", "Receive data as a server over the network via TCP", diff --git a/gst/typefind/gsttypefindfunctions.c b/gst/typefind/gsttypefindfunctions.c index 687e7f2cb8..fb88782a1f 100644 --- a/gst/typefind/gsttypefindfunctions.c +++ b/gst/typefind/gsttypefindfunctions.c @@ -460,7 +460,7 @@ aac_type_find (GstTypeFind * tf, gpointer unused) * of data (5762) to always detect any mp3. */ -static guint mp3types_bitrates[2][3][16] = +static const guint mp3types_bitrates[2][3][16] = { {{0, 32, 64, 96, 128, 160, 192, 224, 256, 288, 320, 352, 384, 416, 448,}, {0, 32, 48, 56, 64, 80, 96, 112, 128, 160, 192, 224, 256, 320, 384,}, {0, 32, 40, 48, 56, 64, 80, 96, 112, 128, 160, 192, 224, 256, 320,}}, @@ -469,7 +469,7 @@ static guint mp3types_bitrates[2][3][16] = {0, 8, 16, 24, 32, 40, 48, 56, 64, 80, 96, 112, 128, 144, 160,}}, }; -static guint mp3types_freqs[3][3] = { {11025, 12000, 8000}, +static const guint mp3types_freqs[3][3] = { {11025, 12000, 8000}, {22050, 24000, 16000}, {44100, 48000, 32000} }; @@ -2255,6 +2255,10 @@ plugin_init (GstPlugin * plugin) /* can't initialize this via a struct as caps can't be statically initialized */ /* note: asx/wax/wmx are XML files, asf doesn't handle them */ + /* FIXME-0.11: these should be const, + this requires gstreamer/gst/gsttypefind::gst_type_find_register() + to have define the parameter as const + */ static gchar *asf_exts[] = { "asf", "wm", "wma", "wmv", NULL }; static gchar *au_exts[] = { "au", "snd", NULL }; static gchar *avi_exts[] = { "avi", NULL }; diff --git a/gst/videorate/gstvideorate.c b/gst/videorate/gstvideorate.c index bdea1369a4..e45478b4a5 100644 --- a/gst/videorate/gstvideorate.c +++ b/gst/videorate/gstvideorate.c @@ -74,7 +74,7 @@ GST_DEBUG_CATEGORY (video_rate_debug); #define GST_CAT_DEFAULT video_rate_debug /* elementfactory information */ -static GstElementDetails video_rate_details = +static const GstElementDetails video_rate_details = GST_ELEMENT_DETAILS ("Video rate adjuster", "Filter/Effect/Video", "Drops/duplicates/adjusts timestamps on video frames to make a perfect stream", diff --git a/gst/videoscale/gstvideoscale.c b/gst/videoscale/gstvideoscale.c index d1fa384b8b..70c9bb4620 100644 --- a/gst/videoscale/gstvideoscale.c +++ b/gst/videoscale/gstvideoscale.c @@ -72,7 +72,7 @@ GST_DEBUG_CATEGORY (video_scale_debug); /* elementfactory information */ -static GstElementDetails video_scale_details = +static const GstElementDetails video_scale_details = GST_ELEMENT_DETAILS ("Video scaler", "Filter/Effect/Video", "Resizes video", diff --git a/gst/videotestsrc/gstvideotestsrc.c b/gst/videotestsrc/gstvideotestsrc.c index e5d5c95196..7177c86848 100644 --- a/gst/videotestsrc/gstvideotestsrc.c +++ b/gst/videotestsrc/gstvideotestsrc.c @@ -53,7 +53,7 @@ GST_DEBUG_CATEGORY (video_test_src_debug); #define GST_CAT_DEFAULT video_test_src_debug -static GstElementDetails video_test_src_details = +static const GstElementDetails video_test_src_details = GST_ELEMENT_DETAILS ("Video test source", "Source/Video", "Creates a test video stream", diff --git a/gst/volume/gstvolume.c b/gst/volume/gstvolume.c index 5beb4a4a9a..311e2defa3 100644 --- a/gst/volume/gstvolume.c +++ b/gst/volume/gstvolume.c @@ -66,7 +66,7 @@ /* number of steps we use for the mixer interface to go from 0.0 to 1.0 */ # define VOLUME_STEPS 100 -static GstElementDetails volume_details = GST_ELEMENT_DETAILS ("Volume", +static const GstElementDetails volume_details = GST_ELEMENT_DETAILS ("Volume", "Filter/Effect/Audio", "Set volume on audio/raw streams", "Andy Wingo "); diff --git a/sys/v4l/gstv4ljpegsrc.c b/sys/v4l/gstv4ljpegsrc.c index 8236c26c3d..372b7762e9 100644 --- a/sys/v4l/gstv4ljpegsrc.c +++ b/sys/v4l/gstv4ljpegsrc.c @@ -30,7 +30,7 @@ #include "v4lsrc_calls.h" /* elementfactory information */ -static GstElementDetails gst_v4ljpegsrc_details = +static const GstElementDetails gst_v4ljpegsrc_details = GST_ELEMENT_DETAILS ("Video (video4linux/raw) Jpeg Source", "Source/Video", "Reads jpeg frames from a video4linux (eg ov519) device", diff --git a/sys/v4l/gstv4lmjpegsink.c b/sys/v4l/gstv4lmjpegsink.c index 36113a0290..07f0d0bd76 100644 --- a/sys/v4l/gstv4lmjpegsink.c +++ b/sys/v4l/gstv4lmjpegsink.c @@ -31,7 +31,7 @@ GST_DEBUG_CATEGORY (v4lmjpegsink_debug); #define GST_CAT_DEFAULT v4lmjpegsink_debug /* elementfactory information */ -static GstElementDetails gst_v4lmjpegsink_details = +static const GstElementDetails gst_v4lmjpegsink_details = GST_ELEMENT_DETAILS ("Video (video4linux/MJPEG) sink", "Sink/Video", "Writes MJPEG-encoded frames to a zoran MJPEG/video4linux device", diff --git a/sys/v4l/gstv4lmjpegsrc.c b/sys/v4l/gstv4lmjpegsrc.c index 2d1797879a..4fc23865e3 100644 --- a/sys/v4l/gstv4lmjpegsrc.c +++ b/sys/v4l/gstv4lmjpegsrc.c @@ -31,7 +31,7 @@ GST_DEBUG_CATEGORY (v4lmjpegsrc_debug); #define GST_CAT_DEFAULT v4lmjpegsrc_debug /* elementfactory information */ -static GstElementDetails gst_v4lmjpegsrc_details = +static const GstElementDetails gst_v4lmjpegsrc_details = GST_ELEMENT_DETAILS ("Video (video4linux/MJPEG) Source", "Source/Video", "Reads MJPEG-encoded frames from a zoran MJPEG/video4linux device", diff --git a/sys/v4l/gstv4lsrc.c b/sys/v4l/gstv4lsrc.c index 01da2f353b..e595bf4387 100644 --- a/sys/v4l/gstv4lsrc.c +++ b/sys/v4l/gstv4lsrc.c @@ -30,7 +30,7 @@ #include -static GstElementDetails gst_v4lsrc_details = +static const GstElementDetails gst_v4lsrc_details = GST_ELEMENT_DETAILS ("Video (video4linux/raw) Source", "Source/Video", "Reads raw frames from a video4linux device", diff --git a/sys/ximage/ximagesink.c b/sys/ximage/ximagesink.c index 959e328582..d6c6cd86ed 100644 --- a/sys/ximage/ximagesink.c +++ b/sys/ximage/ximagesink.c @@ -143,7 +143,7 @@ static void gst_ximagesink_xwindow_update_geometry (GstXImageSink * ximagesink, static void gst_ximagesink_expose (GstXOverlay * overlay); /* ElementFactory information */ -static GstElementDetails gst_ximagesink_details = +static const GstElementDetails gst_ximagesink_details = GST_ELEMENT_DETAILS ("Video sink", "Sink/Video", "A standard X based videosink", diff --git a/sys/xvimage/xvimagesink.c b/sys/xvimage/xvimagesink.c index 44a1fa5ca0..0a24e26793 100644 --- a/sys/xvimage/xvimagesink.c +++ b/sys/xvimage/xvimagesink.c @@ -157,7 +157,7 @@ static void gst_xvimagesink_expose (GstXOverlay * overlay); //static void gst_xvimagesink_send_pending_navigation (GstXvImageSink * xvimagesink); /* ElementFactory information */ -static GstElementDetails gst_xvimagesink_details = +static const GstElementDetails gst_xvimagesink_details = GST_ELEMENT_DETAILS ("Video sink", "Sink/Video", "A Xv based videosink", diff --git a/tests/check/libs/cddabasesrc.c b/tests/check/libs/cddabasesrc.c index 8dde561811..c6144492a2 100644 --- a/tests/check/libs/cddabasesrc.c +++ b/tests/check/libs/cddabasesrc.c @@ -184,7 +184,7 @@ static gboolean gst_cd_foo_src_open (GstCddaBaseSrc * src, const gchar * device); static void gst_cd_foo_src_close (GstCddaBaseSrc * src); -static GstElementDetails cdfoo_details = +static const GstElementDetails cdfoo_details = GST_ELEMENT_DETAILS ("CD Audio (cdda) Source, FooBar", "Source/File", "Read audio from CD",