summaryrefslogtreecommitdiffstats
path: root/gst
diff options
context:
space:
mode:
authorStefan Kost <ensonic@users.sourceforge.net>2006-04-25 21:56:38 +0000
committerStefan Kost <ensonic@users.sourceforge.net>2006-04-25 21:56:38 +0000
commitbf3fd4f95d83633e2d7fda8955d4f94fa8cd2684 (patch)
treee629298cd1498345d4029f1ce20466e52e65c3d9 /gst
parentaf701d80d58617a18d2295344a40a64d9ffa80d2 (diff)
downloadgst-plugins-bad-bf3fd4f95d83633e2d7fda8955d4f94fa8cd2684.tar.gz
gst-plugins-bad-bf3fd4f95d83633e2d7fda8955d4f94fa8cd2684.tar.bz2
gst-plugins-bad-bf3fd4f95d83633e2d7fda8955d4f94fa8cd2684.zip
Define GstElementDetails as const and also static (when defined as global)
Original commit message from CVS: * ext/amrwb/gstamrwbdec.c: * ext/amrwb/gstamrwbenc.c: * ext/amrwb/gstamrwbparse.c: * ext/arts/gst_arts.c: * ext/artsd/gstartsdsink.c: * ext/audiofile/gstafparse.c: * ext/audiofile/gstafsink.c: * ext/audiofile/gstafsrc.c: * ext/audioresample/gstaudioresample.c: * ext/bz2/gstbz2dec.c: * ext/bz2/gstbz2enc.c: * ext/cdaudio/gstcdaudio.c: * ext/directfb/dfbvideosink.c: * ext/divx/gstdivxdec.c: * ext/divx/gstdivxenc.c: * ext/dts/gstdtsdec.c: (gst_dtsdec_base_init): * ext/faac/gstfaac.c: (gst_faac_base_init): * ext/faad/gstfaad.c: * ext/gsm/gstgsmdec.c: * ext/gsm/gstgsmenc.c: * ext/hermes/gsthermescolorspace.c: * ext/ivorbis/vorbisfile.c: * ext/lcs/gstcolorspace.c: * ext/libfame/gstlibfame.c: * ext/libmms/gstmms.c: (gst_mms_base_init): * ext/musepack/gstmusepackdec.c: (gst_musepackdec_base_init): * ext/musicbrainz/gsttrm.c: (gst_musicbrainz_base_init): * ext/nas/nassink.c: (gst_nassink_base_init): * ext/neon/gstneonhttpsrc.c: * ext/sdl/sdlaudiosink.c: * ext/sdl/sdlvideosink.c: * ext/shout/gstshout.c: * ext/snapshot/gstsnapshot.c: * ext/sndfile/gstsf.c: * ext/swfdec/gstswfdec.c: * ext/tarkin/gsttarkindec.c: * ext/tarkin/gsttarkinenc.c: * ext/theora/theoradec.c: * ext/wavpack/gstwavpackdec.c: (gst_wavpack_dec_base_init): * ext/wavpack/gstwavpackparse.c: (gst_wavpack_parse_base_init): * ext/xvid/gstxviddec.c: * ext/xvid/gstxvidenc.c: * gst/cdxaparse/gstcdxaparse.c: (gst_cdxa_parse_base_init): * gst/cdxaparse/gstcdxastrip.c: (gst_cdxastrip_base_init): * gst/chart/gstchart.c: * gst/colorspace/gstcolorspace.c: * gst/deinterlace/gstdeinterlace.c: * gst/equalizer/gstiirequalizer.c: (gst_iir_equalizer_base_init): * gst/festival/gstfestival.c: * gst/filter/gstbpwsinc.c: * gst/filter/gstiir.c: * gst/filter/gstlpwsinc.c: * gst/freeze/gstfreeze.c: * gst/games/gstpuzzle.c: (gst_puzzle_base_init): * gst/librfb/gstrfbsrc.c: * gst/mixmatrix/mixmatrix.c: * gst/mpeg1sys/gstmpeg1systemencode.c: * gst/mpeg1videoparse/gstmp1videoparse.c: * gst/mpeg2sub/gstmpeg2subt.c: * gst/mpegaudioparse/gstmpegaudioparse.c: * gst/multifilesink/gstmultifilesink.c: * gst/overlay/gstoverlay.c: * gst/passthrough/gstpassthrough.c: * gst/playondemand/gstplayondemand.c: * gst/qtdemux/qtdemux.c: * gst/rtjpeg/gstrtjpegdec.c: * gst/rtjpeg/gstrtjpegenc.c: * gst/smooth/gstsmooth.c: * gst/smoothwave/gstsmoothwave.c: * gst/spectrum/gstspectrum.c: * gst/speed/gstspeed.c: * gst/stereo/gststereo.c: * gst/switch/gstswitch.c: * gst/tta/gstttadec.c: (gst_tta_dec_base_init): * gst/tta/gstttaparse.c: (gst_tta_parse_base_init): * gst/vbidec/gstvbidec.c: * gst/videocrop/gstvideocrop.c: * gst/videodrop/gstvideodrop.c: * gst/virtualdub/gstxsharpen.c: * gst/xingheader/gstxingmux.c: (gst_xing_mux_base_init): * gst/y4m/gsty4mencode.c: * sys/cdrom/gstcdplayer.c: * sys/directdraw/gstdirectdrawsink.c: * sys/directsound/gstdirectsoundsink.c: * sys/glsink/glimagesink.c: * sys/qcam/gstqcamsrc.c: * sys/v4l2/gstv4l2src.c: * sys/vcd/vcdsrc.c: (gst_vcdsrc_base_init): * sys/ximagesrc/ximagesrc.c: Define GstElementDetails as const and also static (when defined as global)
Diffstat (limited to 'gst')
-rw-r--r--gst/cdxaparse/gstcdxaparse.c2
-rw-r--r--gst/cdxaparse/gstcdxastrip.c2
-rw-r--r--gst/cdxaparse/gstvcdparse.c2
-rw-r--r--gst/chart/gstchart.c2
-rw-r--r--gst/colorspace/gstcolorspace.c2
-rw-r--r--gst/deinterlace/gstdeinterlace.c2
-rw-r--r--gst/equalizer/gstiirequalizer.c2
-rw-r--r--gst/festival/gstfestival.c2
-rw-r--r--gst/filter/gstbpwsinc.c3
-rw-r--r--gst/filter/gstiir.c2
-rw-r--r--gst/filter/gstlpwsinc.c2
-rw-r--r--gst/freeze/gstfreeze.c3
-rw-r--r--gst/games/gstpuzzle.c2
-rw-r--r--gst/librfb/gstrfbsrc.c75
-rw-r--r--gst/mixmatrix/mixmatrix.c2
-rw-r--r--gst/mpeg1sys/gstmpeg1systemencode.c2
-rw-r--r--gst/mpeg1videoparse/gstmp1videoparse.c2
-rw-r--r--gst/mpeg2sub/gstmpeg2subt.c2
-rw-r--r--gst/mpegaudioparse/gstmpegaudioparse.c2
-rw-r--r--gst/multifilesink/gstmultifilesink.c2
-rw-r--r--gst/overlay/gstoverlay.c3
-rw-r--r--gst/passthrough/gstpassthrough.c2
-rw-r--r--gst/playondemand/gstplayondemand.c2
-rw-r--r--gst/qtdemux/qtdemux.c2
-rw-r--r--gst/rtjpeg/gstrtjpegdec.c2
-rw-r--r--gst/rtjpeg/gstrtjpegenc.c2
-rw-r--r--gst/smooth/gstsmooth.c3
-rw-r--r--gst/smoothwave/gstsmoothwave.c2
-rw-r--r--gst/spectrum/gstspectrum.c2
-rw-r--r--gst/speed/gstspeed.c2
-rw-r--r--gst/stereo/gststereo.c3
-rw-r--r--gst/switch/gstswitch.c3
-rw-r--r--gst/tta/gstttadec.c2
-rw-r--r--gst/tta/gstttaparse.c2
-rw-r--r--gst/vbidec/gstvbidec.c2
-rw-r--r--gst/videocrop/gstvideocrop.c3
-rw-r--r--gst/videodrop/gstvideodrop.c2
-rw-r--r--gst/virtualdub/gstxsharpen.c3
-rw-r--r--gst/xingheader/gstxingmux.c2
-rw-r--r--gst/y4m/gsty4mencode.c2
40 files changed, 82 insertions, 79 deletions
diff --git a/gst/cdxaparse/gstcdxaparse.c b/gst/cdxaparse/gstcdxaparse.c
index e8a072f6..828e27d8 100644
--- a/gst/cdxaparse/gstcdxaparse.c
+++ b/gst/cdxaparse/gstcdxaparse.c
@@ -61,7 +61,7 @@ GST_BOILERPLATE (GstCDXAParse, gst_cdxa_parse, GstElement, GST_TYPE_ELEMENT)
static void gst_cdxa_parse_base_init (gpointer g_class)
{
GstElementClass *element_class = GST_ELEMENT_CLASS (g_class);
- static GstElementDetails gst_cdxa_parse_details =
+ static const GstElementDetails gst_cdxa_parse_details =
GST_ELEMENT_DETAILS ("(S)VCD parser",
"Codec/Parser",
"Parse a .dat file from (S)VCD into raw MPEG-1",
diff --git a/gst/cdxaparse/gstcdxastrip.c b/gst/cdxaparse/gstcdxastrip.c
index 3ef718fa..00124b30 100644
--- a/gst/cdxaparse/gstcdxastrip.c
+++ b/gst/cdxaparse/gstcdxastrip.c
@@ -86,7 +86,7 @@ static void
gst_cdxastrip_base_init (GstCDXAStripClass * klass)
{
GstElementClass *element_class = GST_ELEMENT_CLASS (klass);
- static GstElementDetails gst_cdxastrip_details =
+ static const GstElementDetails gst_cdxastrip_details =
GST_ELEMENT_DETAILS ("(S)VCD stream parser",
"Codec/Parser",
"Strip (S)VCD stream from its syncheaders",
diff --git a/gst/cdxaparse/gstvcdparse.c b/gst/cdxaparse/gstvcdparse.c
index 3ef718fa..00124b30 100644
--- a/gst/cdxaparse/gstvcdparse.c
+++ b/gst/cdxaparse/gstvcdparse.c
@@ -86,7 +86,7 @@ static void
gst_cdxastrip_base_init (GstCDXAStripClass * klass)
{
GstElementClass *element_class = GST_ELEMENT_CLASS (klass);
- static GstElementDetails gst_cdxastrip_details =
+ static const GstElementDetails gst_cdxastrip_details =
GST_ELEMENT_DETAILS ("(S)VCD stream parser",
"Codec/Parser",
"Strip (S)VCD stream from its syncheaders",
diff --git a/gst/chart/gstchart.c b/gst/chart/gstchart.c
index 397fc93d..a94cb6fb 100644
--- a/gst/chart/gstchart.c
+++ b/gst/chart/gstchart.c
@@ -64,7 +64,7 @@ GType gst_chart_get_type (void);
/* elementfactory information */
-static GstElementDetails gst_chart_details =
+static const GstElementDetails gst_chart_details =
GST_ELEMENT_DETAILS ("Chart drawer",
"Visualization",
"Takes frames of data and outputs video frames of a chart of data",
diff --git a/gst/colorspace/gstcolorspace.c b/gst/colorspace/gstcolorspace.c
index 4925b92e..deed9c15 100644
--- a/gst/colorspace/gstcolorspace.c
+++ b/gst/colorspace/gstcolorspace.c
@@ -44,7 +44,7 @@ static GstColorspaceConverter gst_colorspace_converters[] = {
{GST_COLORSPACE_YV12, GST_COLORSPACE_RGB16, gst_colorspace_YV12_to_rgb16},
};
-static GstElementDetails colorspace_details =
+static const GstElementDetails colorspace_details =
GST_ELEMENT_DETAILS ("Colorspace converter",
"Filter/Converter/Video",
"Converts video from YUV to RGB",
diff --git a/gst/deinterlace/gstdeinterlace.c b/gst/deinterlace/gstdeinterlace.c
index e0a1bc24..deec65a5 100644
--- a/gst/deinterlace/gstdeinterlace.c
+++ b/gst/deinterlace/gstdeinterlace.c
@@ -43,7 +43,7 @@
#define GST_VIDEO_I420_SIZE(w,h) (GST_VIDEO_I420_V_OFFSET(w,h)+(GST_VIDEO_I420_V_ROWSTRIDE(w)*ROUND_UP_2(h)/2))
/* elementfactory information */
-static GstElementDetails deinterlace_details =
+static const GstElementDetails deinterlace_details =
GST_ELEMENT_DETAILS ("Deinterlace",
"Filter/Effect/Video",
"Deinterlace video",
diff --git a/gst/equalizer/gstiirequalizer.c b/gst/equalizer/gstiirequalizer.c
index c7d67d30..54f0720a 100644
--- a/gst/equalizer/gstiirequalizer.c
+++ b/gst/equalizer/gstiirequalizer.c
@@ -129,7 +129,7 @@ gst_iir_equalizer_get_type (void)
static void
gst_iir_equalizer_base_init (gpointer g_class)
{
- static GstElementDetails iir_equalizer_details =
+ static const GstElementDetails iir_equalizer_details =
GST_ELEMENT_DETAILS ("Equalizer",
"Filter/Effect/Audio",
"Direct Form IIR equalizer",
diff --git a/gst/festival/gstfestival.c b/gst/festival/gstfestival.c
index 66cdb70b..0559af86 100644
--- a/gst/festival/gstfestival.c
+++ b/gst/festival/gstfestival.c
@@ -90,7 +90,7 @@ static char *socket_receive_file_to_buff (int fd, int *size);
static char *client_accept_s_expr (int fd);
/* elementfactory information */
-static GstElementDetails gst_festival_details =
+static const GstElementDetails gst_festival_details =
GST_ELEMENT_DETAILS ("Festival Text-to-Speech synthesizer",
"Filter/Effect/Audio",
"Synthesizes plain text into audio",
diff --git a/gst/filter/gstbpwsinc.c b/gst/filter/gstbpwsinc.c
index ad77d432..f94e201b 100644
--- a/gst/filter/gstbpwsinc.c
+++ b/gst/filter/gstbpwsinc.c
@@ -39,7 +39,8 @@
#include <string.h> /* memmove */
/* elementfactory information */
-static GstElementDetails gst_bpwsinc_details = GST_ELEMENT_DETAILS ("BPWSinc",
+static const GstElementDetails gst_bpwsinc_details =
+GST_ELEMENT_DETAILS ("BPWSinc",
"Filter/Effect/Audio",
"Band-Pass Windowed sinc filter",
"Thomas <thomas@apestaart.org>, " "Steven W. Smith");
diff --git a/gst/filter/gstiir.c b/gst/filter/gstiir.c
index bee9e0fc..bdebf4ba 100644
--- a/gst/filter/gstiir.c
+++ b/gst/filter/gstiir.c
@@ -25,7 +25,7 @@
#include "gstfilter.h"
#include "iir.h"
-static GstElementDetails gst_iir_details =
+static const GstElementDetails gst_iir_details =
GST_ELEMENT_DETAILS ("Infinite Impulse Response(IIR) filter",
"Filter/Effect/Audio",
"IIR filter based on vorbis code",
diff --git a/gst/filter/gstlpwsinc.c b/gst/filter/gstlpwsinc.c
index 8ebfc4fb..d7b1a5ec 100644
--- a/gst/filter/gstlpwsinc.c
+++ b/gst/filter/gstlpwsinc.c
@@ -38,7 +38,7 @@
#include <math.h> /* M_PI */
#include <string.h> /* memmove */
-static GstElementDetails gst_lpwsinc_details =
+static const GstElementDetails gst_lpwsinc_details =
GST_ELEMENT_DETAILS ("Low-pass Windowed sinc filter",
"Filter/Effect/Audio",
"Low-pass Windowed sinc filter",
diff --git a/gst/freeze/gstfreeze.c b/gst/freeze/gstfreeze.c
index c315dc0f..471d0c46 100644
--- a/gst/freeze/gstfreeze.c
+++ b/gst/freeze/gstfreeze.c
@@ -33,7 +33,8 @@ enum
};
-static GstElementDetails freeze_details = GST_ELEMENT_DETAILS ("Stream freezer",
+static const GstElementDetails freeze_details =
+GST_ELEMENT_DETAILS ("Stream freezer",
"Generic",
"Makes a stream from buffers of data",
"Gergely Nagy <gergely.nagy@neteyes.hu>,"
diff --git a/gst/games/gstpuzzle.c b/gst/games/gstpuzzle.c
index ee5eca4c..b802ffa3 100644
--- a/gst/games/gstpuzzle.c
+++ b/gst/games/gstpuzzle.c
@@ -120,7 +120,7 @@ gst_puzzle_get_type (void)
static void
gst_puzzle_base_init (gpointer g_class)
{
- static GstElementDetails puzzle_details =
+ static const GstElementDetails puzzle_details =
GST_ELEMENT_DETAILS ("A simple puzzle",
"Filter/Effect/Video/Games",
"A simple puzzle, use arrow keys and space to restart/solve",
diff --git a/gst/librfb/gstrfbsrc.c b/gst/librfb/gstrfbsrc.c
index 93929a3b..6f22f985 100644
--- a/gst/librfb/gstrfbsrc.c
+++ b/gst/librfb/gstrfbsrc.c
@@ -70,63 +70,58 @@ struct _GstRfbsrcClass
GstElementClass parent_class;
};
-GType
-gst_rfbsrc_get_type (void)
- G_GNUC_CONST;
-
+GType gst_rfbsrc_get_type (void);
- static GstElementDetails rfbsrc_details =
- GST_ELEMENT_DETAILS ("Video test source",
+static const GstElementDetails rfbsrc_details =
+GST_ELEMENT_DETAILS ("Video test source",
"Source/Video",
"Creates a test video stream",
"David A. Schleef <ds@schleef.org>");
/* GstRfbsrc signals and args */
- enum
- {
- /* FILL ME */
- LAST_SIGNAL
- };
-
- enum
- {
- ARG_0,
- ARG_SERVER,
- ARG_PORT,
- /* FILL ME */
- };
-
- static void gst_rfbsrc_base_init (gpointer g_class);
- static void gst_rfbsrc_class_init (GstRfbsrcClass * klass);
- static void gst_rfbsrc_init (GstRfbsrc * rfbsrc);
- static GstStateChangeReturn gst_rfbsrc_change_state (GstElement * element);
-
- static void gst_rfbsrc_set_property (GObject * object, guint prop_id,
+enum
+{
+ /* FILL ME */
+ LAST_SIGNAL
+};
+
+enum
+{
+ ARG_0,
+ ARG_SERVER,
+ ARG_PORT,
+ /* FILL ME */
+};
+
+static void gst_rfbsrc_base_init (gpointer g_class);
+static void gst_rfbsrc_class_init (GstRfbsrcClass * klass);
+static void gst_rfbsrc_init (GstRfbsrc * rfbsrc);
+static GstStateChangeReturn gst_rfbsrc_change_state (GstElement * element);
+
+static void gst_rfbsrc_set_property (GObject * object, guint prop_id,
const GValue * value, GParamSpec * pspec);
- static void gst_rfbsrc_get_property (GObject * object, guint prop_id,
+static void gst_rfbsrc_get_property (GObject * object, guint prop_id,
GValue * value, GParamSpec * pspec);
- static GstData *gst_rfbsrc_get (GstPad * pad);
+static GstData *gst_rfbsrc_get (GstPad * pad);
- static const GstQueryType *gst_rfbsrc_get_query_types (GstPad * pad);
- static gboolean gst_rfbsrc_src_query (GstPad * pad,
+static const GstQueryType *gst_rfbsrc_get_query_types (GstPad * pad);
+static gboolean gst_rfbsrc_src_query (GstPad * pad,
GstQueryType type, GstFormat * format, gint64 * value);
- static void gst_rfbsrc_paint_rect (RfbDecoder * decoder, int x, int y,
+static void gst_rfbsrc_paint_rect (RfbDecoder * decoder, int x, int y,
int w, int h, guint8 * data);
- static gboolean gst_rfbsrc_handle_src_event (GstPad * pad,
- GstEvent * event);
+static gboolean gst_rfbsrc_handle_src_event (GstPad * pad, GstEvent * event);
- static GstCaps *gst_rfbsrc_getcaps (GstPad * pad);
- static GstPadLinkReturn gst_rfbsrc_link (GstPad * pad,
- const GstCaps * caps);
- static GstCaps *gst_rfbsrc_fixate (GstPad * pad, const GstCaps * caps);
+static GstCaps *gst_rfbsrc_getcaps (GstPad * pad);
+static GstPadLinkReturn gst_rfbsrc_link (GstPad * pad, const GstCaps * caps);
+static GstCaps *gst_rfbsrc_fixate (GstPad * pad, const GstCaps * caps);
- static GstElementClass *parent_class = NULL;
+static GstElementClass *parent_class = NULL;
- static GstStaticPadTemplate gst_rfbsrc_src_template =
- GST_STATIC_PAD_TEMPLATE ("src",
+static GstStaticPadTemplate gst_rfbsrc_src_template =
+GST_STATIC_PAD_TEMPLATE ("src",
GST_PAD_SRC,
GST_PAD_ALWAYS,
GST_STATIC_CAPS ("video/x-raw-rgb, "
diff --git a/gst/mixmatrix/mixmatrix.c b/gst/mixmatrix/mixmatrix.c
index 6593478b..aa2495c1 100644
--- a/gst/mixmatrix/mixmatrix.c
+++ b/gst/mixmatrix/mixmatrix.c
@@ -68,7 +68,7 @@ struct _GstMixMatrixClass
};
/* elementfactory information */
-static GstElementDetails mixmatrix_details =
+static const GstElementDetails mixmatrix_details =
GST_ELEMENT_DETAILS ("Mixing Matrix",
"Filter/Editor/Audio",
"Mix N audio channels together into M channels",
diff --git a/gst/mpeg1sys/gstmpeg1systemencode.c b/gst/mpeg1sys/gstmpeg1systemencode.c
index da3c7485..4cf8a781 100644
--- a/gst/mpeg1sys/gstmpeg1systemencode.c
+++ b/gst/mpeg1sys/gstmpeg1systemencode.c
@@ -31,7 +31,7 @@
/*#define GST_DEBUG (b...) g_print (##b) */
/* elementfactory information */
-static GstElementDetails system_encode_details =
+static const GstElementDetails system_encode_details =
GST_ELEMENT_DETAILS ("MPEG-1 muxer",
"Codec/Muxer",
"Multiplexes MPEG-1 Streams",
diff --git a/gst/mpeg1videoparse/gstmp1videoparse.c b/gst/mpeg1videoparse/gstmp1videoparse.c
index 84757a24..73eb0f13 100644
--- a/gst/mpeg1videoparse/gstmp1videoparse.c
+++ b/gst/mpeg1videoparse/gstmp1videoparse.c
@@ -36,7 +36,7 @@
#define SEQ_END_CODE 0x000001b7
/* elementfactory information */
-static GstElementDetails mpeg1videoparse_details =
+static const GstElementDetails mpeg1videoparse_details =
GST_ELEMENT_DETAILS ("MPEG-1 video parser",
"Codec/Parser/Video",
"Parses and frames MPEG 1 video streams, provides seek",
diff --git a/gst/mpeg2sub/gstmpeg2subt.c b/gst/mpeg2sub/gstmpeg2subt.c
index bea2c53c..e3baea20 100644
--- a/gst/mpeg2sub/gstmpeg2subt.c
+++ b/gst/mpeg2sub/gstmpeg2subt.c
@@ -53,7 +53,7 @@ static void gst_setup_palette (GstMpeg2Subt * mpeg2subt, guchar * indexes,
static void gst_update_still_frame (GstMpeg2Subt * mpeg2subt);
/* elementfactory information */
-static GstElementDetails mpeg2subt_details =
+static const GstElementDetails mpeg2subt_details =
GST_ELEMENT_DETAILS ("MPEG-2 subtitle decoder",
"Codec/Decoder/Video",
"Decodes and merges MPEG2 subtitles into a video frame",
diff --git a/gst/mpegaudioparse/gstmpegaudioparse.c b/gst/mpegaudioparse/gstmpegaudioparse.c
index 1062c2b4..0e4aa25e 100644
--- a/gst/mpegaudioparse/gstmpegaudioparse.c
+++ b/gst/mpegaudioparse/gstmpegaudioparse.c
@@ -25,7 +25,7 @@
/* elementfactory information */
-static GstElementDetails mp3parse_details =
+static const GstElementDetails mp3parse_details =
GST_ELEMENT_DETAILS ("MPEG-1 audio parser",
"Codec/Parser/Audio",
"Parses and frames mpeg1 audio streams (levels 1-3), provides seek",
diff --git a/gst/multifilesink/gstmultifilesink.c b/gst/multifilesink/gstmultifilesink.c
index 99e38e5f..0dad22ce 100644
--- a/gst/multifilesink/gstmultifilesink.c
+++ b/gst/multifilesink/gstmultifilesink.c
@@ -41,7 +41,7 @@
GST_DEBUG_CATEGORY_STATIC (gst_multifilesink_debug);
#define GST_CAT_DEFAULT gst_multifilesink_debug
-GstElementDetails gst_multifilesink_details =
+static const GstElementDetails gst_multifilesink_details =
GST_ELEMENT_DETAILS ("Multiple file sink",
"Sink/File",
"Write stream to multiple files sequentially",
diff --git a/gst/overlay/gstoverlay.c b/gst/overlay/gstoverlay.c
index 1a826b61..373b29c1 100644
--- a/gst/overlay/gstoverlay.c
+++ b/gst/overlay/gstoverlay.c
@@ -25,7 +25,8 @@
#include <gst/video/video.h>
/* elementfactory information */
-static GstElementDetails overlay_details = GST_ELEMENT_DETAILS ("Video overlay",
+static const GstElementDetails overlay_details =
+GST_ELEMENT_DETAILS ("Video overlay",
"Filter/Editor/Video",
"Overlay multiple video streams",
"David Schleef <ds@schleef.org>");
diff --git a/gst/passthrough/gstpassthrough.c b/gst/passthrough/gstpassthrough.c
index 26cee83e..4524f69f 100644
--- a/gst/passthrough/gstpassthrough.c
+++ b/gst/passthrough/gstpassthrough.c
@@ -30,7 +30,7 @@
#define PASSTHRU_NUM_BUFS 4
/* elementfactory information */
-static GstElementDetails passthrough_details =
+static const GstElementDetails passthrough_details =
GST_ELEMENT_DETAILS ("Passthrough",
"Filter/Effect/Audio",
"Transparent filter for audio/raw (boilerplate for effects)",
diff --git a/gst/playondemand/gstplayondemand.c b/gst/playondemand/gstplayondemand.c
index 700a0152..2309cacb 100644
--- a/gst/playondemand/gstplayondemand.c
+++ b/gst/playondemand/gstplayondemand.c
@@ -41,7 +41,7 @@
#define GST_POD_BUFPOOL_NUM 6
-static GstElementDetails play_on_demand_details =
+static const GstElementDetails play_on_demand_details =
GST_ELEMENT_DETAILS ("Play On Demand",
"Filter/Editor/Audio",
"Schedule a stream to play at specific times, or when a signal is received",
diff --git a/gst/qtdemux/qtdemux.c b/gst/qtdemux/qtdemux.c
index 339466a7..83b49243 100644
--- a/gst/qtdemux/qtdemux.c
+++ b/gst/qtdemux/qtdemux.c
@@ -155,7 +155,7 @@ enum QtDemuxState
static GNode *qtdemux_tree_get_child_by_type (GNode * node, guint32 fourcc);
static GNode *qtdemux_tree_get_sibling_by_type (GNode * node, guint32 fourcc);
-static GstElementDetails gst_qtdemux_details =
+static const GstElementDetails gst_qtdemux_details =
GST_ELEMENT_DETAILS ("QuickTime demuxer",
"Codec/Demuxer",
"Demultiplex a QuickTime file into audio and video streams",
diff --git a/gst/rtjpeg/gstrtjpegdec.c b/gst/rtjpeg/gstrtjpegdec.c
index 5024c590..a11808f8 100644
--- a/gst/rtjpeg/gstrtjpegdec.c
+++ b/gst/rtjpeg/gstrtjpegdec.c
@@ -26,7 +26,7 @@
/* elementfactory information */
-GstElementDetails gst_rtjpegdec_details =
+static const GstElementDetails gst_rtjpegdec_details =
GST_ELEMENT_DETAILS ("RTjpeg video decoder",
"Codec/Decoder/Video",
"Decodes video in RTjpeg format",
diff --git a/gst/rtjpeg/gstrtjpegenc.c b/gst/rtjpeg/gstrtjpegenc.c
index 9563e500..f7d76a57 100644
--- a/gst/rtjpeg/gstrtjpegenc.c
+++ b/gst/rtjpeg/gstrtjpegenc.c
@@ -24,7 +24,7 @@
#include "gstrtjpegenc.h"
/* elementfactory information */
-GstElementDetails gst_rtjpegenc_details =
+static const GstElementDetails gst_rtjpegenc_details =
GST_ELEMENT_DETAILS ("RTjpeg video encoder",
"Codec/Encoder/Video",
"Encodes video in RTjpeg format",
diff --git a/gst/smooth/gstsmooth.c b/gst/smooth/gstsmooth.c
index f06f28bb..97ecd9dd 100644
--- a/gst/smooth/gstsmooth.c
+++ b/gst/smooth/gstsmooth.c
@@ -25,7 +25,8 @@
#include <gst/video/video.h>
/* elementfactory information */
-static GstElementDetails smooth_details = GST_ELEMENT_DETAILS ("Smooth effect",
+static const GstElementDetails smooth_details =
+GST_ELEMENT_DETAILS ("Smooth effect",
"Filter/Effect/Video",
"Apply a smooth filter to an image",
"Wim Taymans <wim.taymans@chello.be>");
diff --git a/gst/smoothwave/gstsmoothwave.c b/gst/smoothwave/gstsmoothwave.c
index 38c1f5fd..a0ee5e7c 100644
--- a/gst/smoothwave/gstsmoothwave.c
+++ b/gst/smoothwave/gstsmoothwave.c
@@ -29,7 +29,7 @@
#include "gstsmoothwave.h"
-static GstElementDetails gst_smoothwave_details =
+static const GstElementDetails gst_smoothwave_details =
GST_ELEMENT_DETAILS ("Smooth waveform",
"Visualization",
"Fading grayscale waveform display",
diff --git a/gst/spectrum/gstspectrum.c b/gst/spectrum/gstspectrum.c
index 44221572..4f01ceff 100644
--- a/gst/spectrum/gstspectrum.c
+++ b/gst/spectrum/gstspectrum.c
@@ -25,7 +25,7 @@
#include "gstspectrum.h"
/* elementfactory information */
-static GstElementDetails gst_spectrum_details =
+static const GstElementDetails gst_spectrum_details =
GST_ELEMENT_DETAILS ("Spectrum analyzer",
"Filter/Analyzer/Audio",
"Run an FFT on the audio signal, output spectrum data",
diff --git a/gst/speed/gstspeed.c b/gst/speed/gstspeed.c
index 6ced79c5..a74afe11 100644
--- a/gst/speed/gstspeed.c
+++ b/gst/speed/gstspeed.c
@@ -30,7 +30,7 @@
#include "gstspeed.h"
/* elementfactory information */
-static GstElementDetails speed_details = GST_ELEMENT_DETAILS ("Speed",
+static const GstElementDetails speed_details = GST_ELEMENT_DETAILS ("Speed",
"Filter/Effect/Audio",
"Set speed/pitch on audio/raw streams (resampler)",
"Andy Wingo <apwingo@eos.ncsu.edu>, "
diff --git a/gst/stereo/gststereo.c b/gst/stereo/gststereo.c
index 9354ff83..d99da157 100644
--- a/gst/stereo/gststereo.c
+++ b/gst/stereo/gststereo.c
@@ -28,7 +28,8 @@
#include "gststereo.h"
/* elementfactory information */
-static GstElementDetails stereo_details = GST_ELEMENT_DETAILS ("Stereo effect",
+static const GstElementDetails stereo_details =
+GST_ELEMENT_DETAILS ("Stereo effect",
"Filter/Effect/Audio",
"Muck with the stereo signal to enhance its 'stereo-ness'",
"Erik Walthinsen <omega@cse.ogi.edu>");
diff --git a/gst/switch/gstswitch.c b/gst/switch/gstswitch.c
index b04fbda2..57efa552 100644
--- a/gst/switch/gstswitch.c
+++ b/gst/switch/gstswitch.c
@@ -34,7 +34,8 @@ enum
GST_DEBUG_CATEGORY_STATIC (switch_debug);
/* ElementFactory information */
-static GstElementDetails gst_switch_details = GST_ELEMENT_DETAILS ("Switch",
+static const GstElementDetails gst_switch_details =
+GST_ELEMENT_DETAILS ("Switch",
"Generic",
"N-to-1 input switching",
"Julien Moutte <julien@moutte.net>");
diff --git a/gst/tta/gstttadec.c b/gst/tta/gstttadec.c
index 6e894241..880bc736 100644
--- a/gst/tta/gstttadec.c
+++ b/gst/tta/gstttadec.c
@@ -171,7 +171,7 @@ gst_tta_dec_get_type (void)
static void
gst_tta_dec_base_init (GstTtaDecClass * klass)
{
- static GstElementDetails plugin_details =
+ static const GstElementDetails plugin_details =
GST_ELEMENT_DETAILS ("TTA audio decoder",
"Codec/Decoder/Audio",
"Decode TTA audio data",
diff --git a/gst/tta/gstttaparse.c b/gst/tta/gstttaparse.c
index 4438941b..efbd4ce6 100644
--- a/gst/tta/gstttaparse.c
+++ b/gst/tta/gstttaparse.c
@@ -85,7 +85,7 @@ gst_tta_parse_get_type (void)
static void
gst_tta_parse_base_init (GstTtaParseClass * klass)
{
- static GstElementDetails plugin_details =
+ static const GstElementDetails plugin_details =
GST_ELEMENT_DETAILS ("TTA file parser",
"Codec/Demuxer/Audio",
"Parses TTA files",
diff --git a/gst/vbidec/gstvbidec.c b/gst/vbidec/gstvbidec.c
index 1ee5afb8..2e220e36 100644
--- a/gst/vbidec/gstvbidec.c
+++ b/gst/vbidec/gstvbidec.c
@@ -64,7 +64,7 @@ struct _GstVBIDecClass
GType gst_vbidec_get_type (void);
/* elementfactory information */
-static GstElementDetails gst_vbidec_details =
+static const GstElementDetails gst_vbidec_details =
GST_ELEMENT_DETAILS ("VBI decoder",
"Codec/Decoder/Video",
"Decodes closed captions and XDS data from VBI data",
diff --git a/gst/videocrop/gstvideocrop.c b/gst/videocrop/gstvideocrop.c
index bbca0d7f..12db0352 100644
--- a/gst/videocrop/gstvideocrop.c
+++ b/gst/videocrop/gstvideocrop.c
@@ -59,7 +59,8 @@ struct _GstVideoCropClass
};
/* elementfactory information */
-static GstElementDetails gst_video_crop_details = GST_ELEMENT_DETAILS ("Crop",
+static const GstElementDetails gst_video_crop_details =
+GST_ELEMENT_DETAILS ("Crop",
"Filter/Effect/Video",
"Crops video into a user defined region",
"Wim Taymans <wim.taymans@chello.be>");
diff --git a/gst/videodrop/gstvideodrop.c b/gst/videodrop/gstvideodrop.c
index d5bc630c..11d7f6f5 100644
--- a/gst/videodrop/gstvideodrop.c
+++ b/gst/videodrop/gstvideodrop.c
@@ -25,7 +25,7 @@
#include <gst/video/video.h>
/* elementfactory information */
-static GstElementDetails videodrop_details =
+static const GstElementDetails videodrop_details =
GST_ELEMENT_DETAILS ("Frame dropper",
"Filter/Effect/Video",
"Re-FPS'es video by dropping frames",
diff --git a/gst/virtualdub/gstxsharpen.c b/gst/virtualdub/gstxsharpen.c
index 4a81e8dc..87b6e7dd 100644
--- a/gst/virtualdub/gstxsharpen.c
+++ b/gst/virtualdub/gstxsharpen.c
@@ -53,7 +53,8 @@ struct _GstXsharpenClass
GstElementClass parent_class;
};
-GstElementDetails gst_xsharpen_details = GST_ELEMENT_DETAILS ("Sharpen",
+static const GstElementDetails gst_xsharpen_details =
+GST_ELEMENT_DETAILS ("Sharpen",
"Filter/Video/Effect",
"LGPL",
"Apply a sharpen effect on video" VERSION,
diff --git a/gst/xingheader/gstxingmux.c b/gst/xingheader/gstxingmux.c
index 9bfc7d19..6a7ca000 100644
--- a/gst/xingheader/gstxingmux.c
+++ b/gst/xingheader/gstxingmux.c
@@ -84,7 +84,7 @@ gst_xing_mux_base_init (gpointer g_class)
{
GstElementClass *element_class = GST_ELEMENT_CLASS (g_class);
- static GstElementDetails gst_xing_mux_details =
+ static const GstElementDetails gst_xing_mux_details =
GST_ELEMENT_DETAILS ("MP3 Xing muxer",
"Formatter/Metadata",
"Adds a Xing header to the beginning of a VBR MP3 file",
diff --git a/gst/y4m/gsty4mencode.c b/gst/y4m/gsty4mencode.c
index 0f1854bc..f4e10644 100644
--- a/gst/y4m/gsty4mencode.c
+++ b/gst/y4m/gsty4mencode.c
@@ -26,7 +26,7 @@
#include <gst/video/video.h>
#include "gsty4mencode.h"
-static GstElementDetails y4mencode_details =
+static const GstElementDetails y4mencode_details =
GST_ELEMENT_DETAILS ("YUV4MPEG video encoder",
"Codec/Encoder/Video",
"Encodes a YUV frame into the yuv4mpeg format (mjpegtools)",