various: fix pad template leaks

https://bugzilla.gnome.org/show_bug.cgi?id=662664
This commit is contained in:
Vincent Penquerc'h 2011-11-28 12:58:44 +00:00
parent a2337b8af4
commit c0e101e93f
232 changed files with 807 additions and 875 deletions

View file

@ -190,8 +190,8 @@ gst_aasink_base_init (gpointer g_class)
{ {
GstElementClass *element_class = GST_ELEMENT_CLASS (g_class); GstElementClass *element_class = GST_ELEMENT_CLASS (g_class);
gst_element_class_add_pad_template (element_class, gst_element_class_add_static_pad_template (element_class,
gst_static_pad_template_get (&sink_template)); &sink_template);
gst_element_class_set_details_simple (element_class, "ASCII art video sink", gst_element_class_set_details_simple (element_class, "ASCII art video sink",
"Sink/Video", "Sink/Video",
"An ASCII art videosink", "Wim Taymans <wim.taymans@chello.be>"); "An ASCII art videosink", "Wim Taymans <wim.taymans@chello.be>");

View file

@ -121,10 +121,10 @@ gst_cmml_dec_base_init (gpointer g_class)
{ {
GstElementClass *element_class = GST_ELEMENT_CLASS (g_class); GstElementClass *element_class = GST_ELEMENT_CLASS (g_class);
gst_element_class_add_pad_template (element_class, gst_element_class_add_static_pad_template (element_class,
gst_static_pad_template_get (&gst_cmml_dec_sink_factory)); &gst_cmml_dec_sink_factory);
gst_element_class_add_pad_template (element_class, gst_element_class_add_static_pad_template (element_class,
gst_static_pad_template_get (&gst_cmml_dec_src_factory)); &gst_cmml_dec_src_factory);
gst_element_class_set_details_simple (element_class, "CMML stream decoder", gst_element_class_set_details_simple (element_class, "CMML stream decoder",
"Codec/Decoder", "Codec/Decoder",
"Decodes CMML streams", "Alessandro Decina <alessandro@nnva.org>"); "Decodes CMML streams", "Alessandro Decina <alessandro@nnva.org>");

View file

@ -108,10 +108,10 @@ gst_cmml_enc_base_init (gpointer g_class)
{ {
GstElementClass *element_class = GST_ELEMENT_CLASS (g_class); GstElementClass *element_class = GST_ELEMENT_CLASS (g_class);
gst_element_class_add_pad_template (element_class, gst_element_class_add_static_pad_template (element_class,
gst_static_pad_template_get (&gst_cmml_enc_sink_factory)); &gst_cmml_enc_sink_factory);
gst_element_class_add_pad_template (element_class, gst_element_class_add_static_pad_template (element_class,
gst_static_pad_template_get (&gst_cmml_enc_src_factory)); &gst_cmml_enc_src_factory);
gst_element_class_set_details_simple (element_class, "CMML streams encoder", gst_element_class_set_details_simple (element_class, "CMML streams encoder",
"Codec/Encoder", "Codec/Encoder",
"Encodes CMML streams", "Alessandro Decina <alessandro@nnva.org>"); "Encodes CMML streams", "Alessandro Decina <alessandro@nnva.org>");

View file

@ -194,10 +194,10 @@ gst_cairo_overlay_base_init (gpointer g_class)
"Render overlay on a video stream using Cairo", "Render overlay on a video stream using Cairo",
"Jon Nordby <jononor@gmail.com>"); "Jon Nordby <jononor@gmail.com>");
gst_element_class_add_pad_template (element_class, gst_element_class_add_static_pad_template (element_class,
gst_static_pad_template_get (&gst_cairo_overlay_sink_template)); &gst_cairo_overlay_sink_template);
gst_element_class_add_pad_template (element_class, gst_element_class_add_static_pad_template (element_class,
gst_static_pad_template_get (&gst_cairo_overlay_src_template)); &gst_cairo_overlay_src_template);
} }
static void static void

View file

@ -354,8 +354,8 @@ gst_cairo_render_base_init (gpointer g_class)
gst_element_class_set_details_simple (ec, "Cairo encoder", gst_element_class_set_details_simple (ec, "Cairo encoder",
"Codec/Encoder", "Encodes streams using Cairo", "Codec/Encoder", "Encodes streams using Cairo",
"Lutz Mueller <lutz@topfrose.de>"); "Lutz Mueller <lutz@topfrose.de>");
gst_element_class_add_pad_template (ec, gst_static_pad_template_get (&t_snk)); gst_element_class_add_static_pad_template (ec, &t_snk);
gst_element_class_add_pad_template (ec, gst_static_pad_template_get (&t_src)); gst_element_class_add_static_pad_template (ec, &t_src);
} }
static void static void

View file

@ -132,12 +132,12 @@ gst_text_overlay_base_init (gpointer g_class)
{ {
GstElementClass *element_class = GST_ELEMENT_CLASS (g_class); GstElementClass *element_class = GST_ELEMENT_CLASS (g_class);
gst_element_class_add_pad_template (element_class, gst_element_class_add_static_pad_template (element_class,
gst_static_pad_template_get (&cairo_text_overlay_src_template_factory)); &cairo_text_overlay_src_template_factory);
gst_element_class_add_pad_template (element_class, gst_element_class_add_static_pad_template (element_class,
gst_static_pad_template_get (&video_sink_template_factory)); &video_sink_template_factory);
gst_element_class_add_pad_template (element_class, gst_element_class_add_static_pad_template (element_class,
gst_static_pad_template_get (&text_sink_template_factory)); &text_sink_template_factory);
gst_element_class_set_details_simple (element_class, "Text overlay", gst_element_class_set_details_simple (element_class, "Text overlay",
"Filter/Editor/Video", "Filter/Editor/Video",

View file

@ -265,10 +265,10 @@ gst_cairo_time_overlay_base_init (gpointer g_class)
"Filter/Editor/Video", "Filter/Editor/Video",
"Overlays the time on a video stream", "David Schleef <ds@schleef.org>"); "Overlays the time on a video stream", "David Schleef <ds@schleef.org>");
gst_element_class_add_pad_template (element_class, gst_element_class_add_static_pad_template (element_class,
gst_static_pad_template_get (&gst_cairo_time_overlay_sink_template)); &gst_cairo_time_overlay_sink_template);
gst_element_class_add_pad_template (element_class, gst_element_class_add_static_pad_template (element_class,
gst_static_pad_template_get (&gst_cairo_time_overlay_src_template)); &gst_cairo_time_overlay_src_template);
} }
static void static void

View file

@ -166,10 +166,8 @@ gst_dvdec_base_init (gpointer g_class)
{ {
GstElementClass *element_class = GST_ELEMENT_CLASS (g_class); GstElementClass *element_class = GST_ELEMENT_CLASS (g_class);
gst_element_class_add_pad_template (element_class, gst_element_class_add_static_pad_template (element_class, &sink_temp);
gst_static_pad_template_get (&sink_temp)); gst_element_class_add_static_pad_template (element_class, &src_temp);
gst_element_class_add_pad_template (element_class,
gst_static_pad_template_get (&src_temp));
gst_element_class_set_details_simple (element_class, "DV video decoder", gst_element_class_set_details_simple (element_class, "DV video decoder",
"Codec/Decoder/Video", "Codec/Decoder/Video",

View file

@ -174,12 +174,11 @@ gst_dvdemux_base_init (gpointer g_class)
{ {
GstElementClass *element_class = GST_ELEMENT_CLASS (g_class); GstElementClass *element_class = GST_ELEMENT_CLASS (g_class);
gst_element_class_add_pad_template (element_class, gst_element_class_add_static_pad_template (element_class, &sink_temp);
gst_static_pad_template_get (&sink_temp)); gst_element_class_add_static_pad_template (element_class,
gst_element_class_add_pad_template (element_class, &video_src_temp);
gst_static_pad_template_get (&video_src_temp)); gst_element_class_add_static_pad_template (element_class,
gst_element_class_add_pad_template (element_class, &audio_src_temp);
gst_static_pad_template_get (&audio_src_temp));
gst_element_class_set_details_simple (element_class, gst_element_class_set_details_simple (element_class,
"DV system stream demuxer", "Codec/Demuxer", "DV system stream demuxer", "Codec/Demuxer",

View file

@ -168,8 +168,7 @@ gst_esdmon_base_init (gpointer g_class)
{ {
GstElementClass *element_class = GST_ELEMENT_CLASS (g_class); GstElementClass *element_class = GST_ELEMENT_CLASS (g_class);
gst_element_class_add_pad_template (element_class, gst_element_class_add_static_pad_template (element_class, &src_factory);
gst_static_pad_template_get (&src_factory));
gst_element_class_set_details_simple (element_class, "Esound audio monitor", gst_element_class_set_details_simple (element_class, "Esound audio monitor",
"Source/Audio", "Source/Audio",
"Monitors audio from an esound server", "Monitors audio from an esound server",

View file

@ -111,8 +111,7 @@ gst_esdsink_base_init (gpointer g_class)
{ {
GstElementClass *element_class = GST_ELEMENT_CLASS (g_class); GstElementClass *element_class = GST_ELEMENT_CLASS (g_class);
gst_element_class_add_pad_template (element_class, gst_element_class_add_static_pad_template (element_class, &sink_factory);
gst_static_pad_template_get (&sink_factory));
gst_element_class_set_details_simple (element_class, "Esound audio sink", gst_element_class_set_details_simple (element_class, "Esound audio sink",
"Sink/Audio", "Sink/Audio",
"Plays audio to an esound server", "Plays audio to an esound server",

View file

@ -178,10 +178,10 @@ gst_flac_dec_base_init (gpointer g_class)
{ {
GstElementClass *element_class = GST_ELEMENT_CLASS (g_class); GstElementClass *element_class = GST_ELEMENT_CLASS (g_class);
gst_element_class_add_pad_template (element_class, gst_element_class_add_static_pad_template (element_class,
gst_static_pad_template_get (&flac_dec_src_factory)); &flac_dec_src_factory);
gst_element_class_add_pad_template (element_class, gst_element_class_add_static_pad_template (element_class,
gst_static_pad_template_get (&flac_dec_sink_factory)); &flac_dec_sink_factory);
gst_element_class_set_details_simple (element_class, "FLAC audio decoder", gst_element_class_set_details_simple (element_class, "FLAC audio decoder",
"Codec/Decoder/Audio", "Codec/Decoder/Audio",
"Decodes FLAC lossless audio streams", "Wim Taymans <wim@fluendo.com>"); "Decodes FLAC lossless audio streams", "Wim Taymans <wim@fluendo.com>");

View file

@ -258,10 +258,8 @@ gst_flac_enc_base_init (gpointer g_class)
{ {
GstElementClass *element_class = GST_ELEMENT_CLASS (g_class); GstElementClass *element_class = GST_ELEMENT_CLASS (g_class);
gst_element_class_add_pad_template (element_class, gst_element_class_add_static_pad_template (element_class, &src_factory);
gst_static_pad_template_get (&src_factory)); gst_element_class_add_static_pad_template (element_class, &sink_factory);
gst_element_class_add_pad_template (element_class,
gst_static_pad_template_get (&sink_factory));
gst_element_class_set_details_simple (element_class, "FLAC audio encoder", gst_element_class_set_details_simple (element_class, "FLAC audio encoder",
"Codec/Encoder/Audio", "Codec/Encoder/Audio",

View file

@ -117,10 +117,10 @@ gst_flac_tag_base_init (gpointer g_class)
"Formatter/Metadata", "Formatter/Metadata",
"Rewrite tags in a FLAC file", "Christophe Fergeau <teuf@gnome.org>"); "Rewrite tags in a FLAC file", "Christophe Fergeau <teuf@gnome.org>");
gst_element_class_add_pad_template (element_class, gst_element_class_add_static_pad_template (element_class,
gst_static_pad_template_get (&flac_tag_sink_template)); &flac_tag_sink_template);
gst_element_class_add_pad_template (element_class, gst_element_class_add_static_pad_template (element_class,
gst_static_pad_template_get (&flac_tag_src_template)); &flac_tag_src_template);
GST_DEBUG_CATEGORY_INIT (flactag_debug, "flactag", 0, "flac tag rewriter"); GST_DEBUG_CATEGORY_INIT (flactag_debug, "flactag", 0, "flac tag rewriter");
} }

View file

@ -64,8 +64,7 @@ gst_switch_sink_class_init (GstSwitchSinkClass * klass)
/* Provide a default pad template if the child didn't */ /* Provide a default pad template if the child didn't */
child_pad_templ = gst_element_class_get_pad_template (eklass, "sink"); child_pad_templ = gst_element_class_get_pad_template (eklass, "sink");
if (child_pad_templ == NULL) { if (child_pad_templ == NULL) {
gst_element_class_add_pad_template (eklass, gst_element_class_add_static_pad_template (eklass, &sink_template);
gst_static_pad_template_get (&sink_template));
} }
} }

View file

@ -60,8 +60,7 @@ gst_switch_src_class_init (GstSwitchSrcClass * klass)
/* Provide a default pad template if the child didn't */ /* Provide a default pad template if the child didn't */
child_pad_templ = gst_element_class_get_pad_template (eklass, "src"); child_pad_templ = gst_element_class_get_pad_template (eklass, "src");
if (child_pad_templ == NULL) { if (child_pad_templ == NULL) {
gst_element_class_add_pad_template (eklass, gst_element_class_add_static_pad_template (eklass, &src_template);
gst_static_pad_template_get (&src_template));
} }
} }

View file

@ -157,10 +157,10 @@ gst_gdk_pixbuf_base_init (gpointer g_class)
{ {
GstElementClass *element_class = GST_ELEMENT_CLASS (g_class); GstElementClass *element_class = GST_ELEMENT_CLASS (g_class);
gst_element_class_add_pad_template (element_class, gst_element_class_add_static_pad_template (element_class,
gst_static_pad_template_get (&gst_gdk_pixbuf_src_template)); &gst_gdk_pixbuf_src_template);
gst_element_class_add_pad_template (element_class, gst_element_class_add_static_pad_template (element_class,
gst_static_pad_template_get (&gst_gdk_pixbuf_sink_template)); &gst_gdk_pixbuf_sink_template);
gst_element_class_set_details_simple (element_class, gst_element_class_set_details_simple (element_class,
"GdkPixbuf image decoder", "Codec/Decoder/Image", "GdkPixbuf image decoder", "Codec/Decoder/Image",
"Decodes images in a video stream using GdkPixbuf", "Decodes images in a video stream using GdkPixbuf",

View file

@ -146,8 +146,8 @@ gst_gdk_pixbuf_sink_base_init (gpointer g_class)
"Sink/Video", "Output images as GdkPixbuf objects in bus messages", "Sink/Video", "Output images as GdkPixbuf objects in bus messages",
"Tim-Philipp Müller <tim centricular net>"); "Tim-Philipp Müller <tim centricular net>");
gst_element_class_add_pad_template (element_class, gst_element_class_add_static_pad_template (element_class,
gst_static_pad_template_get (&pixbufsink_sink_factory)); &pixbufsink_sink_factory);
} }
static void static void

View file

@ -122,10 +122,10 @@ gst_pixbufscale_base_init (gpointer g_class)
"Wim Taymans <wim.taymans@chello.be>, " "Wim Taymans <wim.taymans@chello.be>, "
"Renato Filho <renato.filho@indt.org.br>"); "Renato Filho <renato.filho@indt.org.br>");
gst_element_class_add_pad_template (element_class, gst_element_class_add_static_pad_template (element_class,
gst_static_pad_template_get (&gst_pixbufscale_src_template)); &gst_pixbufscale_src_template);
gst_element_class_add_pad_template (element_class, gst_element_class_add_static_pad_template (element_class,
gst_static_pad_template_get (&gst_pixbufscale_sink_template)); &gst_pixbufscale_sink_template);
} }
static void static void

View file

@ -74,8 +74,7 @@ gst_hal_audio_sink_base_init (gpointer klass)
GST_PAD_ALWAYS, GST_PAD_ALWAYS,
GST_STATIC_CAPS_ANY); GST_STATIC_CAPS_ANY);
gst_element_class_add_pad_template (eklass, gst_element_class_add_static_pad_template (eklass, &sink_template);
gst_static_pad_template_get (&sink_template));
gst_element_class_set_details_simple (eklass, "HAL audio sink", gst_element_class_set_details_simple (eklass, "HAL audio sink",
"Sink/Audio", "Sink/Audio",
"Audio sink for sound device access via HAL", "Audio sink for sound device access via HAL",

View file

@ -76,8 +76,7 @@ gst_hal_audio_src_base_init (gpointer klass)
GST_PAD_ALWAYS, GST_PAD_ALWAYS,
GST_STATIC_CAPS_ANY); GST_STATIC_CAPS_ANY);
gst_element_class_add_pad_template (eklass, gst_element_class_add_static_pad_template (eklass, &src_template);
gst_static_pad_template_get (&src_template));
gst_element_class_set_details_simple (eklass, "HAL audio source", gst_element_class_set_details_simple (eklass, "HAL audio source",
"Source/Audio", "Source/Audio",
"Audio source for sound device access via HAL", "Audio source for sound device access via HAL",

View file

@ -681,8 +681,8 @@ gst_jack_audio_sink_base_init (gpointer g_class)
"Sink/Audio", "Output audio to a JACK server", "Sink/Audio", "Output audio to a JACK server",
"Wim Taymans <wim.taymans@gmail.com>"); "Wim Taymans <wim.taymans@gmail.com>");
gst_element_class_add_pad_template (element_class, gst_element_class_add_static_pad_template (element_class,
gst_static_pad_template_get (&jackaudiosink_sink_factory)); &jackaudiosink_sink_factory);
} }
static void static void

View file

@ -697,8 +697,7 @@ gst_jack_audio_src_base_init (gpointer gclass)
{ {
GstElementClass *element_class = GST_ELEMENT_CLASS (gclass); GstElementClass *element_class = GST_ELEMENT_CLASS (gclass);
gst_element_class_add_pad_template (element_class, gst_element_class_add_static_pad_template (element_class, &src_factory);
gst_static_pad_template_get (&src_factory));
gst_element_class_set_details_simple (element_class, "Audio Source (Jack)", gst_element_class_set_details_simple (element_class, "Audio Source (Jack)",
"Source/Audio", "Captures audio from a JACK server", "Source/Audio", "Captures audio from a JACK server",
"Tristan Matthews <tristan@sat.qc.ca>"); "Tristan Matthews <tristan@sat.qc.ca>");

View file

@ -167,10 +167,10 @@ gst_jpeg_dec_base_init (gpointer g_class)
{ {
GstElementClass *element_class = GST_ELEMENT_CLASS (g_class); GstElementClass *element_class = GST_ELEMENT_CLASS (g_class);
gst_element_class_add_pad_template (element_class, gst_element_class_add_static_pad_template (element_class,
gst_static_pad_template_get (&gst_jpeg_dec_src_pad_template)); &gst_jpeg_dec_src_pad_template);
gst_element_class_add_pad_template (element_class, gst_element_class_add_static_pad_template (element_class,
gst_static_pad_template_get (&gst_jpeg_dec_sink_pad_template)); &gst_jpeg_dec_sink_pad_template);
gst_element_class_set_details_simple (element_class, "JPEG image decoder", gst_element_class_set_details_simple (element_class, "JPEG image decoder",
"Codec/Decoder/Image", "Codec/Decoder/Image",
"Decode images from JPEG format", "Wim Taymans <wim@fluendo.com>"); "Decode images from JPEG format", "Wim Taymans <wim@fluendo.com>");

View file

@ -142,10 +142,10 @@ gst_jpegenc_base_init (gpointer g_class)
{ {
GstElementClass *element_class = GST_ELEMENT_CLASS (g_class); GstElementClass *element_class = GST_ELEMENT_CLASS (g_class);
gst_element_class_add_pad_template (element_class, gst_element_class_add_static_pad_template (element_class,
gst_static_pad_template_get (&gst_jpegenc_sink_pad_template)); &gst_jpegenc_sink_pad_template);
gst_element_class_add_pad_template (element_class, gst_element_class_add_static_pad_template (element_class,
gst_static_pad_template_get (&gst_jpegenc_src_pad_template)); &gst_jpegenc_src_pad_template);
gst_element_class_set_details_simple (element_class, "JPEG image encoder", gst_element_class_set_details_simple (element_class, "JPEG image encoder",
"Codec/Encoder/Image", "Codec/Encoder/Image",
"Encode images in JPEG format", "Wim Taymans <wim.taymans@tvd.be>"); "Encode images in JPEG format", "Wim Taymans <wim.taymans@tvd.be>");

View file

@ -106,10 +106,10 @@ gst_smokedec_base_init (gpointer g_class)
{ {
GstElementClass *element_class = GST_ELEMENT_CLASS (g_class); GstElementClass *element_class = GST_ELEMENT_CLASS (g_class);
gst_element_class_add_pad_template (element_class, gst_element_class_add_static_pad_template (element_class,
gst_static_pad_template_get (&gst_smokedec_src_pad_template)); &gst_smokedec_src_pad_template);
gst_element_class_add_pad_template (element_class, gst_element_class_add_static_pad_template (element_class,
gst_static_pad_template_get (&gst_smokedec_sink_pad_template)); &gst_smokedec_sink_pad_template);
gst_element_class_set_details_simple (element_class, "Smoke video decoder", gst_element_class_set_details_simple (element_class, "Smoke video decoder",
"Codec/Decoder/Video", "Codec/Decoder/Video",
"Decode video from Smoke format", "Wim Taymans <wim@fluendo.com>"); "Decode video from Smoke format", "Wim Taymans <wim@fluendo.com>");

View file

@ -123,10 +123,10 @@ gst_smokeenc_base_init (gpointer g_class)
{ {
GstElementClass *element_class = GST_ELEMENT_CLASS (g_class); GstElementClass *element_class = GST_ELEMENT_CLASS (g_class);
gst_element_class_add_pad_template (element_class, gst_element_class_add_static_pad_template (element_class,
gst_static_pad_template_get (&gst_smokeenc_sink_pad_template)); &gst_smokeenc_sink_pad_template);
gst_element_class_add_pad_template (element_class, gst_element_class_add_static_pad_template (element_class,
gst_static_pad_template_get (&gst_smokeenc_src_pad_template)); &gst_smokeenc_src_pad_template);
gst_element_class_set_details_simple (element_class, "Smoke video encoder", gst_element_class_set_details_simple (element_class, "Smoke video encoder",
"Codec/Encoder/Video", "Codec/Encoder/Video",
"Encode images into the Smoke format", "Wim Taymans <wim@fluendo.com>"); "Encode images into the Smoke format", "Wim Taymans <wim@fluendo.com>");

View file

@ -151,8 +151,8 @@ gst_cacasink_base_init (gpointer g_class)
gst_element_class_set_details_simple (element_class, gst_element_class_set_details_simple (element_class,
"A colored ASCII art video sink", "Sink/Video", "A colored ASCII art video sink", "Sink/Video",
"A colored ASCII art videosink", "Zeeshan Ali <zak147@yahoo.com>"); "A colored ASCII art videosink", "Zeeshan Ali <zak147@yahoo.com>");
gst_element_class_add_pad_template (element_class, gst_element_class_add_static_pad_template (element_class,
gst_static_pad_template_get (&sink_template)); &sink_template);
} }
static void static void

View file

@ -66,10 +66,10 @@ gst_mng_dec_base_init (gpointer g_class)
{ {
GstElementClass *element_class = GST_ELEMENT_CLASS (g_class); GstElementClass *element_class = GST_ELEMENT_CLASS (g_class);
gst_element_class_add_pad_template (element_class, gst_element_class_add_static_pad_template (element_class,
gst_static_pad_template_get (&gst_mng_dec_src_pad_template)); &gst_mng_dec_src_pad_template);
gst_element_class_add_pad_template (element_class, gst_element_class_add_static_pad_template (element_class,
gst_static_pad_template_get (&gst_mng_dec_sink_pad_template)); &gst_mng_dec_sink_pad_template);
gst_element_class_set_details_simple (element_class, "MNG video decoder", gst_element_class_set_details_simple (element_class, "MNG video decoder",
"Codec/Decoder/Video", "Codec/Decoder/Video",
"Decode a mng video to raw images", "Wim Taymans <wim@fluendo.com>"); "Decode a mng video to raw images", "Wim Taymans <wim@fluendo.com>");

View file

@ -87,6 +87,9 @@ gst_mng_enc_base_init (gpointer g_class)
gst_element_class_set_details_simple (element_class, "MNG video encoder", gst_element_class_set_details_simple (element_class, "MNG video encoder",
"Codec/Encoder/Video", "Codec/Encoder/Video",
"Encode a video frame to an .mng video", "Wim Taymans <wim@fluendo.com>"); "Encode a video frame to an .mng video", "Wim Taymans <wim@fluendo.com>");
gst_object_unref (mngenc_src_template);
gst_object_unref (mngenc_sink_template);
} }
static void static void

View file

@ -102,10 +102,10 @@ gst_pngdec_base_init (gpointer g_class)
{ {
GstElementClass *element_class = GST_ELEMENT_CLASS (g_class); GstElementClass *element_class = GST_ELEMENT_CLASS (g_class);
gst_element_class_add_pad_template (element_class, gst_element_class_add_static_pad_template (element_class,
gst_static_pad_template_get (&gst_pngdec_src_pad_template)); &gst_pngdec_src_pad_template);
gst_element_class_add_pad_template (element_class, gst_element_class_add_static_pad_template (element_class,
gst_static_pad_template_get (&gst_pngdec_sink_pad_template)); &gst_pngdec_sink_pad_template);
gst_element_class_set_details_simple (element_class, "PNG image decoder", gst_element_class_set_details_simple (element_class, "PNG image decoder",
"Codec/Decoder/Image", "Codec/Decoder/Image",
"Decode a png video frame to a raw image", "Decode a png video frame to a raw image",

View file

@ -97,10 +97,10 @@ gst_pngenc_base_init (gpointer g_class)
{ {
GstElementClass *element_class = GST_ELEMENT_CLASS (g_class); GstElementClass *element_class = GST_ELEMENT_CLASS (g_class);
gst_element_class_add_pad_template gst_element_class_add_static_pad_template
(element_class, gst_static_pad_template_get (&pngenc_sink_template)); (element_class, &pngenc_sink_template);
gst_element_class_add_pad_template gst_element_class_add_static_pad_template
(element_class, gst_static_pad_template_get (&pngenc_src_template)); (element_class, &pngenc_src_template);
gst_element_class_set_details_simple (element_class, "PNG image encoder", gst_element_class_set_details_simple (element_class, "PNG image encoder",
"Codec/Encoder/Image", "Codec/Encoder/Image",
"Encode a video frame to a .png image", "Encode a video frame to a .png image",

View file

@ -128,10 +128,10 @@ gst_mikmod_base_init (gpointer g_class)
{ {
GstElementClass *element_class = GST_ELEMENT_CLASS (g_class); GstElementClass *element_class = GST_ELEMENT_CLASS (g_class);
gst_element_class_add_pad_template (element_class, gst_element_class_add_static_pad_template (element_class,
gst_static_pad_template_get (&mikmod_src_factory)); &mikmod_src_factory);
gst_element_class_add_pad_template (element_class, gst_element_class_add_static_pad_template (element_class,
gst_static_pad_template_get (&mikmod_sink_factory)); &mikmod_sink_factory);
gst_element_class_set_details_simple (element_class, "MikMod audio decoder", gst_element_class_set_details_simple (element_class, "MikMod audio decoder",
"Codec/Decoder/Audio", "Codec/Decoder/Audio",
"Module decoder based on libmikmod", "Jeremy SIMON <jsimon13@yahoo.fr>"); "Module decoder based on libmikmod", "Jeremy SIMON <jsimon13@yahoo.fr>");

View file

@ -140,8 +140,8 @@ gst_pulse_audio_sink_base_init (gpointer klass)
{ {
GstElementClass *element_class = GST_ELEMENT_CLASS (klass); GstElementClass *element_class = GST_ELEMENT_CLASS (klass);
gst_element_class_add_pad_template (element_class, gst_element_class_add_static_pad_template (element_class,
gst_static_pad_template_get (&sink_template)); &sink_template);
gst_element_class_set_details_simple (element_class, gst_element_class_set_details_simple (element_class,
"Bin wrapping pulsesink", "Sink/Audio/Bin", "Bin wrapping pulsesink", "Sink/Audio/Bin",

View file

@ -1809,8 +1809,7 @@ gst_pulsesink_base_init (gpointer g_class)
gst_element_class_set_details_simple (element_class, gst_element_class_set_details_simple (element_class,
"PulseAudio Audio Sink", "PulseAudio Audio Sink",
"Sink/Audio", "Plays audio to a PulseAudio server", "Lennart Poettering"); "Sink/Audio", "Plays audio to a PulseAudio server", "Lennart Poettering");
gst_element_class_add_pad_template (element_class, gst_element_class_add_static_pad_template (element_class, &pad_template);
gst_static_pad_template_get (&pad_template));
} }
static GstRingBuffer * static GstRingBuffer *

View file

@ -227,8 +227,7 @@ gst_pulsesrc_base_init (gpointer g_class)
"PulseAudio Audio Source", "PulseAudio Audio Source",
"Source/Audio", "Source/Audio",
"Captures audio from a PulseAudio server", "Lennart Poettering"); "Captures audio from a PulseAudio server", "Lennart Poettering");
gst_element_class_add_pad_template (element_class, gst_element_class_add_static_pad_template (element_class, &pad_template);
gst_static_pad_template_get (&pad_template));
} }
static void static void

View file

@ -170,8 +170,7 @@ gst_dv1394src_base_init (gpointer g_class)
{ {
GstElementClass *element_class = GST_ELEMENT_CLASS (g_class); GstElementClass *element_class = GST_ELEMENT_CLASS (g_class);
gst_element_class_add_pad_template (element_class, gst_element_class_add_static_pad_template (element_class, &src_factory);
gst_static_pad_template_get (&src_factory));
gst_element_class_set_details_simple (element_class, gst_element_class_set_details_simple (element_class,
"Firewire (1394) DV video source", "Source/Video", "Firewire (1394) DV video source", "Source/Video",

View file

@ -140,8 +140,7 @@ gst_hdv1394src_base_init (gpointer g_class)
{ {
GstElementClass *element_class = GST_ELEMENT_CLASS (g_class); GstElementClass *element_class = GST_ELEMENT_CLASS (g_class);
gst_element_class_add_pad_template (element_class, gst_element_class_add_static_pad_template (element_class, &src_factory);
gst_static_pad_template_get (&src_factory));
gst_element_class_set_details_simple (element_class, gst_element_class_set_details_simple (element_class,
"Firewire (1394) HDV video source", "Source/Video", "Firewire (1394) HDV video source", "Source/Video",

View file

@ -160,8 +160,8 @@ gst_shout2send_base_init (GstShout2sendClass * klass)
{ {
GstElementClass *element_class = GST_ELEMENT_CLASS (klass); GstElementClass *element_class = GST_ELEMENT_CLASS (klass);
gst_element_class_add_pad_template (element_class, gst_element_class_add_static_pad_template (element_class,
gst_static_pad_template_get (&sink_template)); &sink_template);
gst_element_class_set_details_simple (element_class, "Icecast network sink", gst_element_class_set_details_simple (element_class, "Icecast network sink",
"Sink/Network", "Sends data to an icecast server", "Sink/Network", "Sends data to an icecast server",
"Wim Taymans <wim.taymans@chello.be>, " "Wim Taymans <wim.taymans@chello.be>, "

View file

@ -119,8 +119,8 @@ gst_soup_http_client_sink_base_init (gpointer g_class)
{ {
GstElementClass *element_class = GST_ELEMENT_CLASS (g_class); GstElementClass *element_class = GST_ELEMENT_CLASS (g_class);
gst_element_class_add_pad_template (element_class, gst_element_class_add_static_pad_template (element_class,
gst_static_pad_template_get (&gst_soup_http_client_sink_sink_template)); &gst_soup_http_client_sink_sink_template);
gst_element_class_set_details_simple (element_class, "HTTP client sink", gst_element_class_set_details_simple (element_class, "HTTP client sink",
"Generic", "Sends streams to HTTP server via PUT", "Generic", "Sends streams to HTTP server via PUT",

View file

@ -193,8 +193,7 @@ gst_soup_http_src_base_init (gpointer g_class)
{ {
GstElementClass *element_class = GST_ELEMENT_CLASS (g_class); GstElementClass *element_class = GST_ELEMENT_CLASS (g_class);
gst_element_class_add_pad_template (element_class, gst_element_class_add_static_pad_template (element_class, &srctemplate);
gst_static_pad_template_get (&srctemplate));
gst_element_class_set_details_simple (element_class, "HTTP client source", gst_element_class_set_details_simple (element_class, "HTTP client source",
"Source/Network", "Source/Network",

View file

@ -97,10 +97,10 @@ gst_speex_dec_base_init (gpointer g_class)
{ {
GstElementClass *element_class = GST_ELEMENT_CLASS (g_class); GstElementClass *element_class = GST_ELEMENT_CLASS (g_class);
gst_element_class_add_pad_template (element_class, gst_element_class_add_static_pad_template (element_class,
gst_static_pad_template_get (&speex_dec_src_factory)); &speex_dec_src_factory);
gst_element_class_add_pad_template (element_class, gst_element_class_add_static_pad_template (element_class,
gst_static_pad_template_get (&speex_dec_sink_factory)); &speex_dec_sink_factory);
gst_element_class_set_details_simple (element_class, "Speex audio decoder", gst_element_class_set_details_simple (element_class, "Speex audio decoder",
"Codec/Decoder/Audio", "Codec/Decoder/Audio",
"decode speex streams to audio", "Wim Taymans <wim@fluendo.com>"); "decode speex streams to audio", "Wim Taymans <wim@fluendo.com>");

View file

@ -154,10 +154,8 @@ gst_speex_enc_base_init (gpointer g_class)
{ {
GstElementClass *element_class = GST_ELEMENT_CLASS (g_class); GstElementClass *element_class = GST_ELEMENT_CLASS (g_class);
gst_element_class_add_pad_template (element_class, gst_element_class_add_static_pad_template (element_class, &src_factory);
gst_static_pad_template_get (&src_factory)); gst_element_class_add_static_pad_template (element_class, &sink_factory);
gst_element_class_add_pad_template (element_class,
gst_static_pad_template_get (&sink_factory));
gst_element_class_set_details_simple (element_class, "Speex audio encoder", gst_element_class_set_details_simple (element_class, "Speex audio encoder",
"Codec/Encoder/Audio", "Codec/Encoder/Audio",
"Encodes audio in Speex format", "Wim Taymans <wim@fluendo.com>"); "Encodes audio in Speex format", "Wim Taymans <wim@fluendo.com>");

View file

@ -75,8 +75,7 @@ gst_apev2_mux_base_init (gpointer g_class)
{ {
GstElementClass *element_class = GST_ELEMENT_CLASS (g_class); GstElementClass *element_class = GST_ELEMENT_CLASS (g_class);
gst_element_class_add_pad_template (element_class, gst_element_class_add_static_pad_template (element_class, &src_template);
gst_static_pad_template_get (&src_template));
gst_element_class_set_details_simple (element_class, gst_element_class_set_details_simple (element_class,
"TagLib-based APEv2 Muxer", "Formatter/Metadata", "TagLib-based APEv2 Muxer", "Formatter/Metadata",

View file

@ -84,8 +84,7 @@ gst_id3v2_mux_base_init (gpointer g_class)
{ {
GstElementClass *element_class = GST_ELEMENT_CLASS (g_class); GstElementClass *element_class = GST_ELEMENT_CLASS (g_class);
gst_element_class_add_pad_template (element_class, gst_element_class_add_static_pad_template (element_class, &src_template);
gst_static_pad_template_get (&src_template));
gst_element_class_set_details_simple (element_class, gst_element_class_set_details_simple (element_class,
"TagLib-based ID3v2 Muxer", "Formatter/Metadata", "TagLib-based ID3v2 Muxer", "Formatter/Metadata",

View file

@ -83,8 +83,8 @@ gst_tag_lib_mux_base_init (gpointer g_class)
{ {
GstElementClass *element_class = GST_ELEMENT_CLASS (g_class); GstElementClass *element_class = GST_ELEMENT_CLASS (g_class);
gst_element_class_add_pad_template (element_class, gst_element_class_add_static_pad_template (element_class,
gst_static_pad_template_get (&gst_tag_lib_mux_sink_template)); &gst_tag_lib_mux_sink_template);
GST_DEBUG_CATEGORY_INIT (gst_tag_lib_mux_debug, "taglibmux", 0, GST_DEBUG_CATEGORY_INIT (gst_tag_lib_mux_debug, "taglibmux", 0,
"taglib-based muxer"); "taglib-based muxer");

View file

@ -95,10 +95,8 @@ gst_wavpack_dec_base_init (gpointer klass)
{ {
GstElementClass *element_class = GST_ELEMENT_CLASS (klass); GstElementClass *element_class = GST_ELEMENT_CLASS (klass);
gst_element_class_add_pad_template (element_class, gst_element_class_add_static_pad_template (element_class, &src_factory);
gst_static_pad_template_get (&src_factory)); gst_element_class_add_static_pad_template (element_class, &sink_factory);
gst_element_class_add_pad_template (element_class,
gst_static_pad_template_get (&sink_factory));
gst_element_class_set_details_simple (element_class, "Wavpack audio decoder", gst_element_class_set_details_simple (element_class, "Wavpack audio decoder",
"Codec/Decoder/Audio", "Codec/Decoder/Audio",
"Decodes Wavpack audio data", "Decodes Wavpack audio data",

View file

@ -218,12 +218,10 @@ gst_wavpack_enc_base_init (gpointer klass)
GstElementClass *element_class = GST_ELEMENT_CLASS (klass); GstElementClass *element_class = GST_ELEMENT_CLASS (klass);
/* add pad templates */ /* add pad templates */
gst_element_class_add_pad_template (element_class, gst_element_class_add_static_pad_template (element_class, &sink_factory);
gst_static_pad_template_get (&sink_factory)); gst_element_class_add_static_pad_template (element_class, &src_factory);
gst_element_class_add_pad_template (element_class, gst_element_class_add_static_pad_template (element_class,
gst_static_pad_template_get (&src_factory)); &wvcsrc_factory);
gst_element_class_add_pad_template (element_class,
gst_static_pad_template_get (&wvcsrc_factory));
/* set element details */ /* set element details */
gst_element_class_set_details_simple (element_class, "Wavpack audio encoder", gst_element_class_set_details_simple (element_class, "Wavpack audio encoder",

View file

@ -115,12 +115,10 @@ gst_wavpack_parse_base_init (gpointer klass)
{ {
GstElementClass *element_class = GST_ELEMENT_CLASS (klass); GstElementClass *element_class = GST_ELEMENT_CLASS (klass);
gst_element_class_add_pad_template (element_class, gst_element_class_add_static_pad_template (element_class, &src_factory);
gst_static_pad_template_get (&src_factory)); gst_element_class_add_static_pad_template (element_class,
gst_element_class_add_pad_template (element_class, &wvc_src_factory);
gst_static_pad_template_get (&wvc_src_factory)); gst_element_class_add_static_pad_template (element_class, &sink_factory);
gst_element_class_add_pad_template (element_class,
gst_static_pad_template_get (&sink_factory));
gst_element_class_set_details_simple (element_class, "Wavpack parser", gst_element_class_set_details_simple (element_class, "Wavpack parser",
"Codec/Demuxer/Audio", "Codec/Demuxer/Audio",

View file

@ -226,10 +226,10 @@ gst_alpha_base_init (gpointer g_class)
"Edward Hervey <edward.hervey@collabora.co.uk>\n" "Edward Hervey <edward.hervey@collabora.co.uk>\n"
"Jan Schmidt <thaytan@noraisin.net>"); "Jan Schmidt <thaytan@noraisin.net>");
gst_element_class_add_pad_template (element_class, gst_element_class_add_static_pad_template (element_class,
gst_static_pad_template_get (&gst_alpha_sink_template)); &gst_alpha_sink_template);
gst_element_class_add_pad_template (element_class, gst_element_class_add_static_pad_template (element_class,
gst_static_pad_template_get (&gst_alpha_src_template)); &gst_alpha_src_template);
GST_DEBUG_CATEGORY_INIT (gst_alpha_debug, "alpha", 0, GST_DEBUG_CATEGORY_INIT (gst_alpha_debug, "alpha", 0,
"alpha - Element for adding alpha channel to streams"); "alpha - Element for adding alpha channel to streams");

View file

@ -82,10 +82,9 @@ gst_alpha_color_base_init (gpointer g_class)
"ARGB from/to AYUV colorspace conversion preserving the alpha channel", "ARGB from/to AYUV colorspace conversion preserving the alpha channel",
"Wim Taymans <wim@fluendo.com>"); "Wim Taymans <wim@fluendo.com>");
gst_element_class_add_pad_template (element_class, gst_element_class_add_static_pad_template (element_class,
gst_static_pad_template_get (&sink_template)); &sink_template);
gst_element_class_add_pad_template (element_class, gst_element_class_add_static_pad_template (element_class, &src_template);
gst_static_pad_template_get (&src_template));
} }
static void static void

View file

@ -79,8 +79,7 @@ gst_ape_demux_base_init (gpointer klass)
{ {
GstElementClass *element_class = GST_ELEMENT_CLASS (klass); GstElementClass *element_class = GST_ELEMENT_CLASS (klass);
gst_element_class_add_pad_template (element_class, gst_element_class_add_static_pad_template (element_class, &sink_factory);
gst_static_pad_template_get (&sink_factory));
gst_element_class_set_details_simple (element_class, "APE tag demuxer", gst_element_class_set_details_simple (element_class, "APE tag demuxer",
"Codec/Demuxer/Metadata", "Codec/Demuxer/Metadata",

View file

@ -184,10 +184,9 @@ gst_audio_panorama_base_init (gpointer klass)
{ {
GstElementClass *element_class = GST_ELEMENT_CLASS (klass); GstElementClass *element_class = GST_ELEMENT_CLASS (klass);
gst_element_class_add_pad_template (element_class, gst_element_class_add_static_pad_template (element_class, &src_template);
gst_static_pad_template_get (&src_template)); gst_element_class_add_static_pad_template (element_class,
gst_element_class_add_pad_template (element_class, &sink_template);
gst_static_pad_template_get (&sink_template));
gst_element_class_set_details_simple (element_class, "Stereo positioning", gst_element_class_set_details_simple (element_class, "Stereo positioning",
"Filter/Effect/Audio", "Filter/Effect/Audio",
"Positions audio streams in the stereo panorama", "Positions audio streams in the stereo panorama",

View file

@ -112,10 +112,9 @@ gst_aac_parse_base_init (gpointer klass)
{ {
GstElementClass *element_class = GST_ELEMENT_CLASS (klass); GstElementClass *element_class = GST_ELEMENT_CLASS (klass);
gst_element_class_add_pad_template (element_class, gst_element_class_add_static_pad_template (element_class,
gst_static_pad_template_get (&sink_template)); &sink_template);
gst_element_class_add_pad_template (element_class, gst_element_class_add_static_pad_template (element_class, &src_template);
gst_static_pad_template_get (&src_template));
gst_element_class_set_details_simple (element_class, gst_element_class_set_details_simple (element_class,
"AAC audio stream parser", "Codec/Parser/Audio", "AAC audio stream parser", "Codec/Parser/Audio",

View file

@ -174,10 +174,9 @@ gst_ac3_parse_base_init (gpointer klass)
{ {
GstElementClass *element_class = GST_ELEMENT_CLASS (klass); GstElementClass *element_class = GST_ELEMENT_CLASS (klass);
gst_element_class_add_pad_template (element_class, gst_element_class_add_static_pad_template (element_class,
gst_static_pad_template_get (&sink_template)); &sink_template);
gst_element_class_add_pad_template (element_class, gst_element_class_add_static_pad_template (element_class, &src_template);
gst_static_pad_template_get (&src_template));
gst_element_class_set_details_simple (element_class, gst_element_class_set_details_simple (element_class,
"AC3 audio stream parser", "Codec/Parser/Converter/Audio", "AC3 audio stream parser", "Codec/Parser/Converter/Audio",

View file

@ -101,10 +101,9 @@ gst_amr_parse_base_init (gpointer klass)
{ {
GstElementClass *element_class = GST_ELEMENT_CLASS (klass); GstElementClass *element_class = GST_ELEMENT_CLASS (klass);
gst_element_class_add_pad_template (element_class, gst_element_class_add_static_pad_template (element_class,
gst_static_pad_template_get (&sink_template)); &sink_template);
gst_element_class_add_pad_template (element_class, gst_element_class_add_static_pad_template (element_class, &src_template);
gst_static_pad_template_get (&src_template));
gst_element_class_set_details_simple (element_class, gst_element_class_set_details_simple (element_class,
"AMR audio stream parser", "Codec/Parser/Audio", "AMR audio stream parser", "Codec/Parser/Audio",

View file

@ -87,10 +87,9 @@ gst_dca_parse_base_init (gpointer klass)
{ {
GstElementClass *element_class = GST_ELEMENT_CLASS (klass); GstElementClass *element_class = GST_ELEMENT_CLASS (klass);
gst_element_class_add_pad_template (element_class, gst_element_class_add_static_pad_template (element_class,
gst_static_pad_template_get (&sink_template)); &sink_template);
gst_element_class_add_pad_template (element_class, gst_element_class_add_static_pad_template (element_class, &src_template);
gst_static_pad_template_get (&src_template));
gst_element_class_set_details_simple (element_class, gst_element_class_set_details_simple (element_class,
"DTS Coherent Acoustics audio stream parser", "Codec/Parser/Audio", "DTS Coherent Acoustics audio stream parser", "Codec/Parser/Audio",

View file

@ -211,10 +211,8 @@ gst_flac_parse_base_init (gpointer g_class)
{ {
GstElementClass *element_class = GST_ELEMENT_CLASS (g_class); GstElementClass *element_class = GST_ELEMENT_CLASS (g_class);
gst_element_class_add_pad_template (element_class, gst_element_class_add_static_pad_template (element_class, &src_factory);
gst_static_pad_template_get (&src_factory)); gst_element_class_add_static_pad_template (element_class, &sink_factory);
gst_element_class_add_pad_template (element_class,
gst_static_pad_template_get (&sink_factory));
gst_element_class_set_details_simple (element_class, "FLAC audio parser", gst_element_class_set_details_simple (element_class, "FLAC audio parser",
"Codec/Parser/Audio", "Codec/Parser/Audio",

View file

@ -146,10 +146,9 @@ gst_mpeg_audio_parse_base_init (gpointer klass)
{ {
GstElementClass *element_class = GST_ELEMENT_CLASS (klass); GstElementClass *element_class = GST_ELEMENT_CLASS (klass);
gst_element_class_add_pad_template (element_class, gst_element_class_add_static_pad_template (element_class,
gst_static_pad_template_get (&sink_template)); &sink_template);
gst_element_class_add_pad_template (element_class, gst_element_class_add_static_pad_template (element_class, &src_template);
gst_static_pad_template_get (&src_template));
gst_element_class_set_details_simple (element_class, "MPEG1 Audio Parser", gst_element_class_set_details_simple (element_class, "MPEG1 Audio Parser",
"Codec/Parser/Audio", "Codec/Parser/Audio",

View file

@ -89,10 +89,9 @@ gst_au_parse_base_init (gpointer g_class)
{ {
GstElementClass *element_class = GST_ELEMENT_CLASS (g_class); GstElementClass *element_class = GST_ELEMENT_CLASS (g_class);
gst_element_class_add_pad_template (element_class, gst_element_class_add_static_pad_template (element_class,
gst_static_pad_template_get (&sink_template)); &sink_template);
gst_element_class_add_pad_template (element_class, gst_element_class_add_static_pad_template (element_class, &src_template);
gst_static_pad_template_get (&src_template));
gst_element_class_set_details_simple (element_class, "AU audio demuxer", gst_element_class_set_details_simple (element_class, "AU audio demuxer",
"Codec/Demuxer/Audio", "Codec/Demuxer/Audio",
"Parse an .au file into raw audio", "Parse an .au file into raw audio",

View file

@ -73,8 +73,7 @@ gst_auto_audio_sink_base_init (gpointer klass)
{ {
GstElementClass *eklass = GST_ELEMENT_CLASS (klass); GstElementClass *eklass = GST_ELEMENT_CLASS (klass);
gst_element_class_add_pad_template (eklass, gst_element_class_add_static_pad_template (eklass, &sink_template);
gst_static_pad_template_get (&sink_template));
gst_element_class_set_details_simple (eklass, "Auto audio sink", gst_element_class_set_details_simple (eklass, "Auto audio sink",
"Sink/Audio", "Sink/Audio",

View file

@ -74,8 +74,7 @@ gst_auto_audio_src_base_init (gpointer klass)
{ {
GstElementClass *eklass = GST_ELEMENT_CLASS (klass); GstElementClass *eklass = GST_ELEMENT_CLASS (klass);
gst_element_class_add_pad_template (eklass, gst_element_class_add_static_pad_template (eklass, &src_template);
gst_static_pad_template_get (&src_template));
gst_element_class_set_details_simple (eklass, "Auto audio source", gst_element_class_set_details_simple (eklass, "Auto audio source",
"Source/Audio", "Source/Audio",

View file

@ -74,8 +74,7 @@ gst_auto_video_sink_base_init (gpointer klass)
{ {
GstElementClass *eklass = GST_ELEMENT_CLASS (klass); GstElementClass *eklass = GST_ELEMENT_CLASS (klass);
gst_element_class_add_pad_template (eklass, gst_element_class_add_static_pad_template (eklass, &sink_template);
gst_static_pad_template_get (&sink_template));
gst_element_class_set_details_simple (eklass, "Auto video sink", gst_element_class_set_details_simple (eklass, "Auto video sink",
"Sink/Video", "Sink/Video",
"Wrapper video sink for automatically detected video sink", "Wrapper video sink for automatically detected video sink",

View file

@ -75,8 +75,7 @@ gst_auto_video_src_base_init (gpointer klass)
{ {
GstElementClass *eklass = GST_ELEMENT_CLASS (klass); GstElementClass *eklass = GST_ELEMENT_CLASS (klass);
gst_element_class_add_pad_template (eklass, gst_element_class_add_static_pad_template (eklass, &src_template);
gst_static_pad_template_get (&src_template));
gst_element_class_set_details_simple (eklass, "Auto video source", gst_element_class_set_details_simple (eklass, "Auto video source",
"Source/Video", "Source/Video",
"Wrapper video source for automatically detected video source", "Wrapper video source for automatically detected video source",

View file

@ -172,8 +172,10 @@ gst_avi_demux_base_init (GstAviDemuxClass * klass)
gst_element_class_add_pad_template (element_class, audiosrctempl); gst_element_class_add_pad_template (element_class, audiosrctempl);
gst_element_class_add_pad_template (element_class, videosrctempl); gst_element_class_add_pad_template (element_class, videosrctempl);
gst_element_class_add_pad_template (element_class, subsrctempl); gst_element_class_add_pad_template (element_class, subsrctempl);
gst_element_class_add_pad_template (element_class, gst_element_class_add_static_pad_template (element_class, &sink_templ);
gst_static_pad_template_get (&sink_templ)); gst_object_unref (audiosrctempl);
gst_object_unref (videosrctempl);
gst_object_unref (subsrctempl);
gst_element_class_set_details_simple (element_class, "Avi demuxer", gst_element_class_set_details_simple (element_class, "Avi demuxer",
"Codec/Demuxer", "Codec/Demuxer",
"Demultiplex an avi file into audio and video", "Demultiplex an avi file into audio and video",

View file

@ -246,12 +246,11 @@ gst_avi_mux_base_init (gpointer g_class)
{ {
GstElementClass *element_class = GST_ELEMENT_CLASS (g_class); GstElementClass *element_class = GST_ELEMENT_CLASS (g_class);
gst_element_class_add_pad_template (element_class, gst_element_class_add_static_pad_template (element_class, &src_factory);
gst_static_pad_template_get (&src_factory)); gst_element_class_add_static_pad_template (element_class,
gst_element_class_add_pad_template (element_class, &audio_sink_factory);
gst_static_pad_template_get (&audio_sink_factory)); gst_element_class_add_static_pad_template (element_class,
gst_element_class_add_pad_template (element_class, &video_sink_factory);
gst_static_pad_template_get (&video_sink_factory));
gst_element_class_set_details_simple (element_class, "Avi muxer", gst_element_class_set_details_simple (element_class, "Avi muxer",
"Codec/Muxer", "Codec/Muxer",

View file

@ -309,10 +309,9 @@ gst_avi_subtitle_base_init (gpointer klass)
GST_DEBUG_CATEGORY_INIT (avisubtitle_debug, "avisubtitle", 0, GST_DEBUG_CATEGORY_INIT (avisubtitle_debug, "avisubtitle", 0,
"parse avi subtitle stream"); "parse avi subtitle stream");
gst_element_class_add_pad_template (element_class, gst_element_class_add_static_pad_template (element_class,
gst_static_pad_template_get (&sink_template)); &sink_template);
gst_element_class_add_pad_template (element_class, gst_element_class_add_static_pad_template (element_class, &src_template);
gst_static_pad_template_get (&src_template));
gst_element_class_set_details_simple (element_class, gst_element_class_set_details_simple (element_class,
"Avi subtitle parser", "Codec/Parser/Subtitle", "Avi subtitle parser", "Codec/Parser/Subtitle",

View file

@ -114,10 +114,10 @@ gst_cutter_base_init (gpointer g_class)
{ {
GstElementClass *element_class = GST_ELEMENT_CLASS (g_class); GstElementClass *element_class = GST_ELEMENT_CLASS (g_class);
gst_element_class_add_pad_template (element_class, gst_element_class_add_static_pad_template (element_class,
gst_static_pad_template_get (&cutter_src_factory)); &cutter_src_factory);
gst_element_class_add_pad_template (element_class, gst_element_class_add_static_pad_template (element_class,
gst_static_pad_template_get (&cutter_sink_factory)); &cutter_sink_factory);
gst_element_class_set_details_simple (element_class, "Audio cutter", gst_element_class_set_details_simple (element_class, "Audio cutter",
"Filter/Editor/Audio", "Filter/Editor/Audio",
"Audio Cutter to split audio into non-silent bits", "Audio Cutter to split audio into non-silent bits",

View file

@ -110,10 +110,10 @@ gst_break_my_data_base_init (gpointer g_class)
{ {
GstElementClass *gstelement_class = GST_ELEMENT_CLASS (g_class); GstElementClass *gstelement_class = GST_ELEMENT_CLASS (g_class);
gst_element_class_add_pad_template (gstelement_class, gst_element_class_add_static_pad_template (gstelement_class,
gst_static_pad_template_get (&bmd_sink_template)); &bmd_sink_template);
gst_element_class_add_pad_template (gstelement_class, gst_element_class_add_static_pad_template (gstelement_class,
gst_static_pad_template_get (&bmd_src_template)); &bmd_src_template);
gst_element_class_set_details_simple (gstelement_class, "Break my data", gst_element_class_set_details_simple (gstelement_class, "Break my data",
"Testing", "Testing",

View file

@ -58,10 +58,10 @@ gst_cpu_report_base_init (gpointer g_class)
{ {
GstElementClass *element_class = GST_ELEMENT_CLASS (g_class); GstElementClass *element_class = GST_ELEMENT_CLASS (g_class);
gst_element_class_add_pad_template (element_class, gst_element_class_add_static_pad_template (element_class,
gst_static_pad_template_get (&cpu_report_sink_template)); &cpu_report_sink_template);
gst_element_class_add_pad_template (element_class, gst_element_class_add_static_pad_template (element_class,
gst_static_pad_template_get (&cpu_report_src_template)); &cpu_report_src_template);
gst_element_class_set_details_simple (element_class, "CPU report", gst_element_class_set_details_simple (element_class, "CPU report",
"Testing", "Testing",

View file

@ -134,10 +134,10 @@ gst_efence_base_init (gpointer g_class)
{ {
GstElementClass *element_class = GST_ELEMENT_CLASS (g_class); GstElementClass *element_class = GST_ELEMENT_CLASS (g_class);
gst_element_class_add_pad_template (element_class, gst_element_class_add_static_pad_template (element_class,
gst_static_pad_template_get (&gst_efence_sink_factory)); &gst_efence_sink_factory);
gst_element_class_add_pad_template (element_class, gst_element_class_add_static_pad_template (element_class,
gst_static_pad_template_get (&gst_efence_src_factory)); &gst_efence_src_factory);
gst_element_class_set_details_simple (element_class, "Electric Fence", gst_element_class_set_details_simple (element_class, "Electric Fence",
"Testing", "Testing",
"This element converts a stream of normal GStreamer buffers into a " "This element converts a stream of normal GStreamer buffers into a "

View file

@ -73,10 +73,10 @@ gst_caps_debug_base_init (gpointer g_class)
{ {
GstElementClass *element_class = GST_ELEMENT_CLASS (g_class); GstElementClass *element_class = GST_ELEMENT_CLASS (g_class);
gst_element_class_add_pad_template (element_class, gst_element_class_add_static_pad_template (element_class,
gst_static_pad_template_get (&gst_caps_debug_src_template)); &gst_caps_debug_src_template);
gst_element_class_add_pad_template (element_class, gst_element_class_add_static_pad_template (element_class,
gst_static_pad_template_get (&gst_caps_debug_sink_template)); &gst_caps_debug_sink_template);
gst_element_class_set_details_simple (element_class, "Caps debug", gst_element_class_set_details_simple (element_class, "Caps debug",
"Generic", "Debug caps negotiation", "David Schleef <ds@schleef.org>"); "Generic", "Debug caps negotiation", "David Schleef <ds@schleef.org>");

View file

@ -124,10 +124,10 @@ gst_caps_setter_base_init (gpointer g_class)
"Set/merge caps on stream", "Set/merge caps on stream",
"Mark Nauwelaerts <mnauw@users.sourceforge.net>"); "Mark Nauwelaerts <mnauw@users.sourceforge.net>");
gst_element_class_add_pad_template (element_class, gst_element_class_add_static_pad_template (element_class,
gst_static_pad_template_get (&gst_caps_setter_sink_template)); &gst_caps_setter_sink_template);
gst_element_class_add_pad_template (element_class, gst_element_class_add_static_pad_template (element_class,
gst_static_pad_template_get (&gst_caps_setter_src_template)); &gst_caps_setter_src_template);
} }
static void static void

View file

@ -271,10 +271,10 @@ gst_navigationtest_base_init (gpointer g_class)
"Handle navigation events showing a black square following mouse pointer", "Handle navigation events showing a black square following mouse pointer",
"David Schleef <ds@schleef.org>"); "David Schleef <ds@schleef.org>");
gst_element_class_add_pad_template (element_class, gst_element_class_add_static_pad_template (element_class,
gst_static_pad_template_get (&gst_navigationtest_sink_template)); &gst_navigationtest_sink_template);
gst_element_class_add_pad_template (element_class, gst_element_class_add_static_pad_template (element_class,
gst_static_pad_template_get (&gst_navigationtest_src_template)); &gst_navigationtest_src_template);
} }
static void static void

View file

@ -68,10 +68,10 @@ gst_navseek_base_init (gpointer g_class)
{ {
GstElementClass *element_class = GST_ELEMENT_CLASS (g_class); GstElementClass *element_class = GST_ELEMENT_CLASS (g_class);
gst_element_class_add_pad_template (element_class, gst_element_class_add_static_pad_template (element_class,
gst_static_pad_template_get (&navseek_sink_template)); &navseek_sink_template);
gst_element_class_add_pad_template (element_class, gst_element_class_add_static_pad_template (element_class,
gst_static_pad_template_get (&navseek_src_template)); &navseek_src_template);
gst_element_class_set_details_simple (element_class, gst_element_class_set_details_simple (element_class,
"Seek based on left-right arrows", "Filter/Video", "Seek based on left-right arrows", "Filter/Video",

View file

@ -79,8 +79,7 @@ gst_push_file_src_base_init (gpointer g_class)
{ {
GstElementClass *element_class = GST_ELEMENT_CLASS (g_class); GstElementClass *element_class = GST_ELEMENT_CLASS (g_class);
gst_element_class_add_pad_template (element_class, gst_element_class_add_static_pad_template (element_class, &srctemplate);
gst_static_pad_template_get (&srctemplate));
gst_element_class_set_details_simple (element_class, "Push File Source", gst_element_class_set_details_simple (element_class, "Push File Source",
"Testing", "Testing",

View file

@ -87,10 +87,10 @@ gst_tag_inject_base_init (gpointer g_class)
gst_element_class_set_details_simple (gstelement_class, gst_element_class_set_details_simple (gstelement_class,
"TagInject", "TagInject",
"Generic", "inject metadata tags", "Stefan Kost <ensonic@users.sf.net>"); "Generic", "inject metadata tags", "Stefan Kost <ensonic@users.sf.net>");
gst_element_class_add_pad_template (gstelement_class, gst_element_class_add_static_pad_template (gstelement_class,
gst_static_pad_template_get (&srctemplate)); &srctemplate);
gst_element_class_add_pad_template (gstelement_class, gst_element_class_add_static_pad_template (gstelement_class,
gst_static_pad_template_get (&sinktemplate)); &sinktemplate);
} }
static void static void

View file

@ -123,10 +123,10 @@ gst_progress_report_base_init (gpointer g_class)
{ {
GstElementClass *element_class = GST_ELEMENT_CLASS (g_class); GstElementClass *element_class = GST_ELEMENT_CLASS (g_class);
gst_element_class_add_pad_template (element_class, gst_element_class_add_static_pad_template (element_class,
gst_static_pad_template_get (&progress_report_sink_template)); &progress_report_sink_template);
gst_element_class_add_pad_template (element_class, gst_element_class_add_static_pad_template (element_class,
gst_static_pad_template_get (&progress_report_src_template)); &progress_report_src_template);
gst_element_class_set_details_simple (element_class, "Progress report", gst_element_class_set_details_simple (element_class, "Progress report",
"Testing", "Testing",

View file

@ -106,10 +106,10 @@ gst_rnd_buffer_size_base_init (gpointer g_class)
{ {
GstElementClass *gstelement_class = GST_ELEMENT_CLASS (g_class); GstElementClass *gstelement_class = GST_ELEMENT_CLASS (g_class);
gst_element_class_add_pad_template (gstelement_class, gst_element_class_add_static_pad_template (gstelement_class,
gst_static_pad_template_get (&sink_template)); &sink_template);
gst_element_class_add_pad_template (gstelement_class, gst_element_class_add_static_pad_template (gstelement_class,
gst_static_pad_template_get (&src_template)); &src_template);
gst_element_class_set_details_simple (gstelement_class, "Random buffer size", gst_element_class_set_details_simple (gstelement_class, "Random buffer size",
"Testing", "pull random sized buffers", "Testing", "pull random sized buffers",

View file

@ -94,8 +94,8 @@ gst_test_base_init (gpointer g_class)
{ {
GstElementClass *gstelement_class = GST_ELEMENT_CLASS (g_class); GstElementClass *gstelement_class = GST_ELEMENT_CLASS (g_class);
gst_element_class_add_pad_template (gstelement_class, gst_element_class_add_static_pad_template (gstelement_class,
gst_static_pad_template_get (&sinktemplate)); &sinktemplate);
gst_element_class_set_details_simple (gstelement_class, "Test plugin", gst_element_class_set_details_simple (gstelement_class, "Test plugin",
"Testing", "perform a number of tests", "Benjamin Otte <otte@gnome>"); "Testing", "perform a number of tests", "Benjamin Otte <otte@gnome>");

View file

@ -450,10 +450,8 @@ gst_deinterlace_base_init (gpointer klass)
{ {
GstElementClass *element_class = GST_ELEMENT_CLASS (klass); GstElementClass *element_class = GST_ELEMENT_CLASS (klass);
gst_element_class_add_pad_template (element_class, gst_element_class_add_static_pad_template (element_class, &src_templ);
gst_static_pad_template_get (&src_templ)); gst_element_class_add_static_pad_template (element_class, &sink_templ);
gst_element_class_add_pad_template (element_class,
gst_static_pad_template_get (&sink_templ));
gst_element_class_set_details_simple (element_class, gst_element_class_set_details_simple (element_class,
"Deinterlacer", "Deinterlacer",

View file

@ -378,10 +378,10 @@ gst_agingtv_base_init (gpointer g_class)
"AgingTV adds age to video input using scratches and dust", "AgingTV adds age to video input using scratches and dust",
"Sam Lantinga <slouken@devolution.com>"); "Sam Lantinga <slouken@devolution.com>");
gst_element_class_add_pad_template (element_class, gst_element_class_add_static_pad_template (element_class,
gst_static_pad_template_get (&gst_agingtv_sink_template)); &gst_agingtv_sink_template);
gst_element_class_add_pad_template (element_class, gst_element_class_add_static_pad_template (element_class,
gst_static_pad_template_get (&gst_agingtv_src_template)); &gst_agingtv_src_template);
} }
static void static void

View file

@ -289,10 +289,10 @@ gst_dicetv_base_init (gpointer g_class)
"'Dices' the screen up into many small squares", "'Dices' the screen up into many small squares",
"Wim Taymans <wim.taymans@chello.be>"); "Wim Taymans <wim.taymans@chello.be>");
gst_element_class_add_pad_template (element_class, gst_element_class_add_static_pad_template (element_class,
gst_static_pad_template_get (&gst_dicetv_sink_template)); &gst_dicetv_sink_template);
gst_element_class_add_pad_template (element_class, gst_element_class_add_static_pad_template (element_class,
gst_static_pad_template_get (&gst_dicetv_src_template)); &gst_dicetv_src_template);
} }
static void static void

View file

@ -238,10 +238,10 @@ gst_edgetv_base_init (gpointer g_class)
"Filter/Effect/Video", "Filter/Effect/Video",
"Apply edge detect on video", "Wim Taymans <wim.taymans@chello.be>"); "Apply edge detect on video", "Wim Taymans <wim.taymans@chello.be>");
gst_element_class_add_pad_template (element_class, gst_element_class_add_static_pad_template (element_class,
gst_static_pad_template_get (&gst_edgetv_sink_template)); &gst_edgetv_sink_template);
gst_element_class_add_pad_template (element_class, gst_element_class_add_static_pad_template (element_class,
gst_static_pad_template_get (&gst_edgetv_src_template)); &gst_edgetv_src_template);
} }
static void static void

View file

@ -384,10 +384,10 @@ gst_optv_base_init (gpointer g_class)
"FUKUCHI, Kentarou <fukuchi@users.sourceforge.net>, " "FUKUCHI, Kentarou <fukuchi@users.sourceforge.net>, "
"Sebastian Dröge <sebastian.droege@collabora.co.uk>"); "Sebastian Dröge <sebastian.droege@collabora.co.uk>");
gst_element_class_add_pad_template (element_class, gst_element_class_add_static_pad_template (element_class,
gst_static_pad_template_get (&gst_optv_sink_template)); &gst_optv_sink_template);
gst_element_class_add_pad_template (element_class, gst_element_class_add_static_pad_template (element_class,
gst_static_pad_template_get (&gst_optv_src_template)); &gst_optv_src_template);
} }
static void static void

View file

@ -274,10 +274,10 @@ gst_quarktv_base_init (gpointer g_class)
"Filter/Effect/Video", "Filter/Effect/Video",
"Motion dissolver", "FUKUCHI, Kentarou <fukuchi@users.sourceforge.net>"); "Motion dissolver", "FUKUCHI, Kentarou <fukuchi@users.sourceforge.net>");
gst_element_class_add_pad_template (element_class, gst_element_class_add_static_pad_template (element_class,
gst_static_pad_template_get (&gst_quarktv_sink_template)); &gst_quarktv_sink_template);
gst_element_class_add_pad_template (element_class, gst_element_class_add_static_pad_template (element_class,
gst_static_pad_template_get (&gst_quarktv_src_template)); &gst_quarktv_src_template);
} }
static void static void

View file

@ -578,10 +578,10 @@ gst_radioactv_base_init (gpointer g_class)
"FUKUCHI, Kentarou <fukuchi@users.sourceforge.net>, " "FUKUCHI, Kentarou <fukuchi@users.sourceforge.net>, "
"Sebastian Dröge <sebastian.droege@collabora.co.uk>"); "Sebastian Dröge <sebastian.droege@collabora.co.uk>");
gst_element_class_add_pad_template (element_class, gst_element_class_add_static_pad_template (element_class,
gst_static_pad_template_get (&gst_radioactv_sink_template)); &gst_radioactv_sink_template);
gst_element_class_add_pad_template (element_class, gst_element_class_add_static_pad_template (element_class,
gst_static_pad_template_get (&gst_radioactv_src_template)); &gst_radioactv_src_template);
} }
static void static void

View file

@ -232,10 +232,10 @@ gst_revtv_base_init (gpointer g_class)
"A video waveform monitor for each line of video processed", "A video waveform monitor for each line of video processed",
"Wim Taymans <wim.taymans@chello.be>"); "Wim Taymans <wim.taymans@chello.be>");
gst_element_class_add_pad_template (element_class, gst_element_class_add_static_pad_template (element_class,
gst_static_pad_template_get (&gst_revtv_sink_template)); &gst_revtv_sink_template);
gst_element_class_add_pad_template (element_class, gst_element_class_add_static_pad_template (element_class,
gst_static_pad_template_get (&gst_revtv_src_template)); &gst_revtv_src_template);
} }
static void static void

View file

@ -577,10 +577,10 @@ gst_rippletv_base_init (gpointer g_class)
"FUKUCHI, Kentarou <fukuchi@users.sourceforge.net>, " "FUKUCHI, Kentarou <fukuchi@users.sourceforge.net>, "
"Sebastian Dröge <sebastian.droege@collabora.co.uk>"); "Sebastian Dröge <sebastian.droege@collabora.co.uk>");
gst_element_class_add_pad_template (element_class, gst_element_class_add_static_pad_template (element_class,
gst_static_pad_template_get (&gst_rippletv_sink_template)); &gst_rippletv_sink_template);
gst_element_class_add_pad_template (element_class, gst_element_class_add_static_pad_template (element_class,
gst_static_pad_template_get (&gst_rippletv_src_template)); &gst_rippletv_src_template);
} }
static void static void

View file

@ -244,10 +244,10 @@ gst_shagadelictv_base_init (gpointer g_class)
"Oh behave, ShagedelicTV makes images shagadelic!", "Oh behave, ShagedelicTV makes images shagadelic!",
"Wim Taymans <wim.taymans@chello.be>"); "Wim Taymans <wim.taymans@chello.be>");
gst_element_class_add_pad_template (element_class, gst_element_class_add_static_pad_template (element_class,
gst_static_pad_template_get (&gst_shagadelictv_sink_template)); &gst_shagadelictv_sink_template);
gst_element_class_add_pad_template (element_class, gst_element_class_add_static_pad_template (element_class,
gst_static_pad_template_get (&gst_shagadelictv_src_template)); &gst_shagadelictv_src_template);
} }
static void static void

View file

@ -245,10 +245,10 @@ gst_streaktv_base_init (gpointer g_class)
"FUKUCHI, Kentarou <fukuchi@users.sourceforge.net>, " "FUKUCHI, Kentarou <fukuchi@users.sourceforge.net>, "
"Sebastian Dröge <sebastian.droege@collabora.co.uk>"); "Sebastian Dröge <sebastian.droege@collabora.co.uk>");
gst_element_class_add_pad_template (element_class, gst_element_class_add_static_pad_template (element_class,
gst_static_pad_template_get (&gst_streaktv_sink_template)); &gst_streaktv_sink_template);
gst_element_class_add_pad_template (element_class, gst_element_class_add_static_pad_template (element_class,
gst_static_pad_template_get (&gst_streaktv_src_template)); &gst_streaktv_src_template);
} }
static void static void

View file

@ -289,10 +289,10 @@ gst_vertigotv_base_init (gpointer g_class)
"A loopback alpha blending effector with rotating and scaling", "A loopback alpha blending effector with rotating and scaling",
"Wim Taymans <wim.taymans@chello.be>"); "Wim Taymans <wim.taymans@chello.be>");
gst_element_class_add_pad_template (element_class, gst_element_class_add_static_pad_template (element_class,
gst_static_pad_template_get (&gst_vertigotv_sink_template)); &gst_vertigotv_sink_template);
gst_element_class_add_pad_template (element_class, gst_element_class_add_static_pad_template (element_class,
gst_static_pad_template_get (&gst_vertigotv_src_template)); &gst_vertigotv_src_template);
} }
static void static void

View file

@ -260,10 +260,10 @@ gst_warptv_base_init (gpointer g_class)
"WarpTV does realtime goo'ing of the video input", "WarpTV does realtime goo'ing of the video input",
"Sam Lantinga <slouken@devolution.com>"); "Sam Lantinga <slouken@devolution.com>");
gst_element_class_add_pad_template (element_class, gst_element_class_add_static_pad_template (element_class,
gst_static_pad_template_get (&gst_warptv_sink_template)); &gst_warptv_sink_template);
gst_element_class_add_pad_template (element_class, gst_element_class_add_static_pad_template (element_class,
gst_static_pad_template_get (&gst_warptv_src_template)); &gst_warptv_src_template);
} }
static void static void

View file

@ -3232,12 +3232,12 @@ gst_flv_demux_base_init (gpointer g_class)
{ {
GstElementClass *element_class = GST_ELEMENT_CLASS (g_class); GstElementClass *element_class = GST_ELEMENT_CLASS (g_class);
gst_element_class_add_pad_template (element_class, gst_element_class_add_static_pad_template (element_class,
gst_static_pad_template_get (&flv_sink_template)); &flv_sink_template);
gst_element_class_add_pad_template (element_class, gst_element_class_add_static_pad_template (element_class,
gst_static_pad_template_get (&audio_src_template)); &audio_src_template);
gst_element_class_add_pad_template (element_class, gst_element_class_add_static_pad_template (element_class,
gst_static_pad_template_get (&video_src_template)); &video_src_template);
gst_element_class_set_details_simple (element_class, "FLV Demuxer", gst_element_class_set_details_simple (element_class, "FLV Demuxer",
"Codec/Demuxer", "Codec/Demuxer",
"Demux FLV feeds into digital streams", "Demux FLV feeds into digital streams",

View file

@ -135,12 +135,11 @@ gst_flv_mux_base_init (gpointer g_class)
{ {
GstElementClass *element_class = GST_ELEMENT_CLASS (g_class); GstElementClass *element_class = GST_ELEMENT_CLASS (g_class);
gst_element_class_add_pad_template (element_class, gst_element_class_add_static_pad_template (element_class,
gst_static_pad_template_get (&videosink_templ)); &videosink_templ);
gst_element_class_add_pad_template (element_class, gst_element_class_add_static_pad_template (element_class,
gst_static_pad_template_get (&audiosink_templ)); &audiosink_templ);
gst_element_class_add_pad_template (element_class, gst_element_class_add_static_pad_template (element_class, &src_templ);
gst_static_pad_template_get (&src_templ));
gst_element_class_set_details_simple (element_class, "FLV muxer", gst_element_class_set_details_simple (element_class, "FLV muxer",
"Codec/Muxer", "Codec/Muxer",
"Muxes video/audio streams into a FLV stream", "Muxes video/audio streams into a FLV stream",

View file

@ -111,10 +111,10 @@ gst_flxdec_base_init (GstFlxDecClass * klass)
"Codec/Decoder/Video", "Codec/Decoder/Video",
"FLC/FLI/FLX video decoder", "FLC/FLI/FLX video decoder",
"Sepp Wijnands <mrrazz@garbage-coderz.net>, Zeeshan Ali <zeenix@gmail.com>"); "Sepp Wijnands <mrrazz@garbage-coderz.net>, Zeeshan Ali <zeenix@gmail.com>");
gst_element_class_add_pad_template (gstelement_class, gst_element_class_add_static_pad_template (gstelement_class,
gst_static_pad_template_get (&sink_factory)); &sink_factory);
gst_element_class_add_pad_template (gstelement_class, gst_element_class_add_static_pad_template (gstelement_class,
gst_static_pad_template_get (&src_video_factory)); &src_video_factory);
} }
static void static void

View file

@ -137,10 +137,9 @@ gst_goom_base_init (GstGoomClass * klass)
"Visualization", "Visualization",
"Takes frames of data and outputs video frames using the GOOM filter", "Takes frames of data and outputs video frames using the GOOM filter",
"Wim Taymans <wim@fluendo.com>"); "Wim Taymans <wim@fluendo.com>");
gst_element_class_add_pad_template (element_class, gst_element_class_add_static_pad_template (element_class,
gst_static_pad_template_get (&sink_template)); &sink_template);
gst_element_class_add_pad_template (element_class, gst_element_class_add_static_pad_template (element_class, &src_template);
gst_static_pad_template_get (&src_template));
} }
static void static void

View file

@ -134,10 +134,9 @@ gst_goom_base_init (GstGoomClass * klass)
"GOOM: what a GOOM! 2k1 edition", "Visualization", "GOOM: what a GOOM! 2k1 edition", "Visualization",
"Takes frames of data and outputs video frames using the GOOM 2k1 filter", "Takes frames of data and outputs video frames using the GOOM 2k1 filter",
"Wim Taymans <wim@fluendo.com>"); "Wim Taymans <wim@fluendo.com>");
gst_element_class_add_pad_template (element_class, gst_element_class_add_static_pad_template (element_class,
gst_static_pad_template_get (&sink_template)); &sink_template);
gst_element_class_add_pad_template (element_class, gst_element_class_add_static_pad_template (element_class, &src_template);
gst_static_pad_template_get (&src_template));
} }
static void static void

View file

@ -115,10 +115,8 @@ gst_icydemux_base_init (GstICYDemuxClass * klass)
{ {
GstElementClass *element_class = GST_ELEMENT_CLASS (klass); GstElementClass *element_class = GST_ELEMENT_CLASS (klass);
gst_element_class_add_pad_template (element_class, gst_element_class_add_static_pad_template (element_class, &src_factory);
gst_static_pad_template_get (&src_factory)); gst_element_class_add_static_pad_template (element_class, &sink_factory);
gst_element_class_add_pad_template (element_class,
gst_static_pad_template_get (&sink_factory));
gst_element_class_set_details_simple (element_class, "ICY tag demuxer", gst_element_class_set_details_simple (element_class, "ICY tag demuxer",
"Codec/Demuxer/Metadata", "Codec/Demuxer/Metadata",
"Read and output ICY tags while demuxing the contents", "Read and output ICY tags while demuxing the contents",

View file

@ -96,8 +96,7 @@ gst_id3demux_base_init (gpointer klass)
{ {
GstElementClass *element_class = GST_ELEMENT_CLASS (klass); GstElementClass *element_class = GST_ELEMENT_CLASS (klass);
gst_element_class_add_pad_template (element_class, gst_element_class_add_static_pad_template (element_class, &sink_factory);
gst_static_pad_template_get (&sink_factory));
gst_element_class_set_details_simple (element_class, "ID3 tag demuxer", gst_element_class_set_details_simple (element_class, "ID3 tag demuxer",
"Codec/Demuxer/Metadata", "Codec/Demuxer/Metadata",

Some files were not shown because too many files have changed in this diff Show more