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
};
-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",
#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",
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",
#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",
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",
#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)",
};
/* 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>");
#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)",
#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",
#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",
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",
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",
#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",
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",
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",
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",
*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",
#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",
#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",
/*** 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",
};
/* 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",
#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",
#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",
#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",
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",
//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",
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",
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",
} 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",
#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",
#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",
#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",
#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",
* 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,}},
{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}
};
/* 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 };
#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",
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",
#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",
/* 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>");
#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",
#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",
#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",
#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",
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",
//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",
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",