make GstElementDetails const
authorStefan Kost <ensonic@users.sourceforge.net>
Fri, 28 Apr 2006 19:46:37 +0000 (19:46 +0000)
committerStefan Kost <ensonic@users.sourceforge.net>
Fri, 28 Apr 2006 19:46:37 +0000 (19:46 +0000)
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

46 files changed:
ChangeLog
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
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

index cee5882..9483bd0 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,54 @@
 2006-04-28  Stefan Kost  <ensonic@users.sf.net>
 
+       * 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  <ensonic@users.sf.net>
+
        * gst/adder/gstadder.c: (gst_adder_setcaps), (gst_adder_src_event),
        (gst_adder_init):
         send events from src-pad to all sink-pads fixes #338657
index 89d6f6d..36fe2b6 100644 (file)
@@ -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",
index e1dacce..8996ab4 100644 (file)
@@ -56,7 +56,7 @@
 #include <gst/gst-i18n-plugin.h>
 
 /* 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",
index c408d4d..aa7da14 100644 (file)
@@ -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",
index c1a1961..51c7d74 100644 (file)
@@ -73,7 +73,7 @@
 #include <string.h>
 #include <errno.h>
 
-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",
index 699b9f6..9886eb6 100644 (file)
@@ -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",
index 71a05c9..dbdc887 100644 (file)
@@ -27,7 +27,7 @@
 #include <string.h>
 #include <gst/gst-i18n-plugin.h>
 
-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)",
index 58c58f4..7f5dcf7 100644 (file)
@@ -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 <wim@fluendo.com>");
index 507f82c..0a9418c 100644 (file)
@@ -36,7 +36,7 @@
 #include <ogg/ogg.h>
 #include <string.h>
 
-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)",
index b75a51f..d903838 100644 (file)
@@ -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 <rbultje@ronald.bitfreak.net>");
 
-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 <rbultje@ronald.bitfreak.net>");
 
-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",
index b00d0b0..1cd071f 100644 (file)
@@ -57,7 +57,7 @@
 #include <gst/video/video.h>
 #include <time.h>
 
-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",
index 7738b7f..0239da4 100644 (file)
@@ -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",
index 990b89b..067b8a4 100644 (file)
@@ -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",
index 93a9b90..640ddb3 100644 (file)
@@ -57,7 +57,7 @@
 
 #include <gsttimeoverlay.h>
 
-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",
index d1c7b09..c60fa34 100644 (file)
@@ -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",
index ddda008..c6a1cc3 100644 (file)
@@ -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",
index fb969ca..e6bd56a 100644 (file)
@@ -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",
index 072af43..c5cc86a 100644 (file)
@@ -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",
index 177d84e..58eb5ee 100644 (file)
@@ -27,7 +27,7 @@
 
 #include <string.h>
 
-static GstElementDetails audio_filter_details =
+static const GstElementDetails audio_filter_details =
 GST_ELEMENT_DETAILS ("Audio filter base class",
     "Filter/Effect/Audio",
     "Filters audio",
index 1c63522..ce0cef3 100644 (file)
@@ -34,7 +34,7 @@
 #include <gst/audio/gstaudiofilter.h>
 #include <string.h>
 
-static GstElementDetails audio_filter_template_details =
+static const GstElementDetails audio_filter_template_details =
 GST_ELEMENT_DETAILS ("Audio filter template",
     "Filter/Effect/Audio",
     "Filters audio",
index fea73e4..c35e49c 100644 (file)
@@ -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",
index 11e73a6..e24be80 100644 (file)
@@ -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",
index 0701586..3304f27 100644 (file)
@@ -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",
index 2fa3081..52c47e7 100644 (file)
@@ -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",
index 13f5642..bfe0b7e 100644 (file)
@@ -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",
index 580c1f9..bfb3422 100644 (file)
@@ -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",
index d6336b7..9ac43e8 100644 (file)
@@ -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",
index 672964f..da021d8 100644 (file)
@@ -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",
index 36481a4..60ad39f 100644 (file)
@@ -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",
index 4b444de..6e71b45 100644 (file)
@@ -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",
index 94bbc65..d53a4df 100644 (file)
@@ -28,7 +28,7 @@
 #include <string.h>             /* 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",
index 90887f8..d561775 100644 (file)
@@ -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",
index fa04971..b6d52b8 100644 (file)
@@ -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",
index 2cb5897..02c9cdb 100644 (file)
@@ -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",
index 687e7f2..fb88782 100644 (file)
@@ -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 };
index bdea136..e45478b 100644 (file)
@@ -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",
index d1fa384..70c9bb4 100644 (file)
@@ -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",
index e5d5c95..7177c86 100644 (file)
@@ -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",
index 5beb4a4..311e2de 100644 (file)
@@ -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 <wingo@pobox.com>");
index 8236c26..372b776 100644 (file)
@@ -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",
index 36113a0..07f0d0b 100644 (file)
@@ -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",
index 2d17978..4fc2386 100644 (file)
@@ -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",
index 01da2f3..e595bf4 100644 (file)
@@ -30,7 +30,7 @@
 #include <sys/ioctl.h>
 
 
-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",
index 959e328..d6c6cd8 100644 (file)
@@ -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",
index 44a1fa5..0a24e26 100644 (file)
@@ -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",
index 8dde561..c614449 100644 (file)
@@ -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",