various: fix pad template ref leaks

https://bugzilla.gnome.org/show_bug.cgi?id=662664
This commit is contained in:
Vincent Penquerc'h 2011-11-28 13:08:27 +00:00
parent 26d6add945
commit 7521b597f4
287 changed files with 856 additions and 1004 deletions

View file

@ -265,8 +265,8 @@ gst_apexsink_base_init (gpointer g_class)
"Apple AirPort Express Audio Sink", "Sink/Audio/Wireless",
"Output stream to an AirPort Express",
"Jérémie Bernard [GRemi] <gremimail@gmail.com>");
gst_element_class_add_pad_template (element_class,
gst_static_pad_template_get (&gst_apexsink_sink_factory));
gst_element_class_add_static_pad_template (element_class,
&gst_apexsink_sink_factory);
}
/* sink class init */

View file

@ -111,10 +111,8 @@ gst_arts_base_init (gpointer g_class)
{
GstElementClass *element_class = GST_ELEMENT_CLASS (g_class);
gst_element_class_add_pad_template (element_class,
gst_static_pad_template_get (&sink_temp));
gst_element_class_add_pad_template (element_class,
gst_static_pad_template_get (&src_temp));
gst_element_class_add_static_pad_template (element_class, &sink_temp);
gst_element_class_add_static_pad_template (element_class, &src_temp);
gst_element_class_set_details_simple (element_class, "aRts plugin",
"Filter/Audio", "aRts wrapper filter",
"Erik Walthinsen <omega@temple-baptist.com, "

View file

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

View file

@ -117,12 +117,11 @@ gst_ass_render_base_init (gpointer gclass)
{
GstElementClass *element_class = (GstElementClass *) gclass;
gst_element_class_add_pad_template (element_class,
gst_static_pad_template_get (&src_factory));
gst_element_class_add_pad_template (element_class,
gst_static_pad_template_get (&video_sink_factory));
gst_element_class_add_pad_template (element_class,
gst_static_pad_template_get (&text_sink_factory));
gst_element_class_add_static_pad_template (element_class, &src_factory);
gst_element_class_add_static_pad_template (element_class,
&video_sink_factory);
gst_element_class_add_static_pad_template (element_class,
&text_sink_factory);
gst_element_class_set_details_simple (element_class, "ASS/SSA Render",
"Mixer/Video/Overlay/Subtitle",

View file

@ -114,10 +114,10 @@ gst_afparse_base_init (gpointer g_class)
{
GstElementClass *element_class = GST_ELEMENT_CLASS (g_class);
gst_element_class_add_pad_template (element_class,
gst_static_pad_template_get (&afparse_src_factory));
gst_element_class_add_pad_template (element_class,
gst_static_pad_template_get (&afparse_sink_factory));
gst_element_class_add_static_pad_template (element_class,
&afparse_src_factory);
gst_element_class_add_static_pad_template (element_class,
&afparse_sink_factory);
gst_element_class_set_details_simple (element_class, "Audiofile demuxer",
"Codec/Demuxer/Audio",

View file

@ -138,8 +138,8 @@ gst_afsink_base_init (gpointer g_class)
{
GstElementClass *element_class = GST_ELEMENT_CLASS (g_class);
gst_element_class_add_pad_template (element_class,
gst_static_pad_template_get (&afsink_sink_factory));
gst_element_class_add_static_pad_template (element_class,
&afsink_sink_factory);
gst_element_class_set_details_simple (element_class, "Audiofile sink",
"Sink/Audio",
"Write audio streams to disk using libaudiofile",

View file

@ -135,8 +135,8 @@ gst_afsrc_base_init (gpointer g_class)
{
GstElementClass *element_class = GST_ELEMENT_CLASS (g_class);
gst_element_class_add_pad_template (element_class,
gst_static_pad_template_get (&afsrc_src_factory));
gst_element_class_add_static_pad_template (element_class,
&afsrc_src_factory);
gst_element_class_set_details_simple (element_class, "Audiofile source",
"Source/Audio",
"Read audio files from disk using libaudiofile",

View file

@ -115,10 +115,10 @@ static void gst_audioresample_base_init (gpointer g_class)
{
GstElementClass *gstelement_class = GST_ELEMENT_CLASS (g_class);
gst_element_class_add_pad_template (gstelement_class,
gst_static_pad_template_get (&gst_audioresample_src_template));
gst_element_class_add_pad_template (gstelement_class,
gst_static_pad_template_get (&gst_audioresample_sink_template));
gst_element_class_add_static_pad_template (gstelement_class,
&gst_audioresample_src_template);
gst_element_class_add_static_pad_template (gstelement_class,
&gst_audioresample_sink_template);
gst_element_class_set_details_simple (gstelement_class, "Audio scaler",
"Filter/Converter/Audio",

View file

@ -212,10 +212,8 @@ gst_bz2dec_base_init (gpointer g_class)
{
GstElementClass *ec = GST_ELEMENT_CLASS (g_class);
gst_element_class_add_pad_template (ec,
gst_static_pad_template_get (&sink_template));
gst_element_class_add_pad_template (ec,
gst_static_pad_template_get (&src_template));
gst_element_class_add_static_pad_template (ec, &sink_template);
gst_element_class_add_static_pad_template (ec, &src_template);
gst_element_class_set_details_simple (ec, "BZ2 decoder",
"Codec/Decoder", "Decodes compressed streams",
"Lutz Mueller <lutz@users.sourceforge.net>");

View file

@ -262,10 +262,8 @@ gst_bz2enc_base_init (gpointer g_class)
{
GstElementClass *ec = GST_ELEMENT_CLASS (g_class);
gst_element_class_add_pad_template (ec,
gst_static_pad_template_get (&sink_template));
gst_element_class_add_pad_template (ec,
gst_static_pad_template_get (&src_template));
gst_element_class_add_static_pad_template (ec, &sink_template);
gst_element_class_add_static_pad_template (ec, &src_template);
gst_element_class_set_details_simple (ec, "BZ2 encoder",
"Codec/Encoder", "Compresses streams",
"Lutz Mueller <lutz@users.sourceforge.net>");

View file

@ -83,10 +83,10 @@ gst_celt_dec_base_init (gpointer g_class)
{
GstElementClass *element_class = GST_ELEMENT_CLASS (g_class);
gst_element_class_add_pad_template (element_class,
gst_static_pad_template_get (&celt_dec_src_factory));
gst_element_class_add_pad_template (element_class,
gst_static_pad_template_get (&celt_dec_sink_factory));
gst_element_class_add_static_pad_template (element_class,
&celt_dec_src_factory);
gst_element_class_add_static_pad_template (element_class,
&celt_dec_sink_factory);
gst_element_class_set_details_simple (element_class, "Celt audio decoder",
"Codec/Decoder/Audio",
"decode celt streams to audio",

View file

@ -150,10 +150,8 @@ gst_celt_enc_base_init (gpointer g_class)
{
GstElementClass *element_class = GST_ELEMENT_CLASS (g_class);
gst_element_class_add_pad_template (element_class,
gst_static_pad_template_get (&src_factory));
gst_element_class_add_pad_template (element_class,
gst_static_pad_template_get (&sink_factory));
gst_element_class_add_static_pad_template (element_class, &src_factory);
gst_element_class_add_static_pad_template (element_class, &sink_factory);
gst_element_class_set_details_simple (element_class, "Celt audio encoder",
"Codec/Encoder/Audio",
"Encodes audio in Celt format",

View file

@ -126,10 +126,10 @@ gst_cogcolorspace_base_init (gpointer g_class)
GstElementClass *element_class = GST_ELEMENT_CLASS (g_class);
gst_element_class_add_pad_template (element_class,
gst_static_pad_template_get (&gst_cogcolorspace_src_template));
gst_element_class_add_pad_template (element_class,
gst_static_pad_template_get (&gst_cogcolorspace_sink_template));
gst_element_class_add_static_pad_template (element_class,
&gst_cogcolorspace_src_template);
gst_element_class_add_static_pad_template (element_class,
&gst_cogcolorspace_sink_template);
gst_element_class_set_details_simple (element_class,
"YCbCr/RGB format conversion", "Filter/Converter/Video",

View file

@ -132,10 +132,10 @@ gst_cogdownsample_base_init (gpointer g_class)
GstElementClass *element_class = GST_ELEMENT_CLASS (g_class);
gst_element_class_add_pad_template (element_class,
gst_static_pad_template_get (&gst_cogdownsample_src_template));
gst_element_class_add_pad_template (element_class,
gst_static_pad_template_get (&gst_cogdownsample_sink_template));
gst_element_class_add_static_pad_template (element_class,
&gst_cogdownsample_src_template);
gst_element_class_add_static_pad_template (element_class,
&gst_cogdownsample_sink_template);
gst_element_class_set_details_simple (element_class,
"Scale down video by factor of 2", "Filter/Effect/Video",

View file

@ -135,12 +135,12 @@ gst_mse_base_init (gpointer klass)
{
GstElementClass *element_class = GST_ELEMENT_CLASS (klass);
gst_element_class_add_pad_template (element_class,
gst_static_pad_template_get (&gst_framestore_src_template));
gst_element_class_add_pad_template (element_class,
gst_static_pad_template_get (&gst_framestore_sink_ref_template));
gst_element_class_add_pad_template (element_class,
gst_static_pad_template_get (&gst_framestore_sink_test_template));
gst_element_class_add_static_pad_template (element_class,
&gst_framestore_src_template);
gst_element_class_add_static_pad_template (element_class,
&gst_framestore_sink_ref_template);
gst_element_class_add_static_pad_template (element_class,
&gst_framestore_sink_test_template);
gst_element_class_set_details_simple (element_class, "Calculate MSE",
"Filter/Effect",

View file

@ -207,10 +207,10 @@ gst_cog_scale_base_init (gpointer g_class)
"Filter/Effect/Video",
"Resizes video", "Wim Taymans <wim.taymans@chello.be>");
gst_element_class_add_pad_template (element_class,
gst_static_pad_template_get (&gst_cog_scale_src_template));
gst_element_class_add_pad_template (element_class,
gst_static_pad_template_get (&gst_cog_scale_sink_template));
gst_element_class_add_static_pad_template (element_class,
&gst_cog_scale_src_template);
gst_element_class_add_static_pad_template (element_class,
&gst_cog_scale_sink_template);
}
static void

View file

@ -132,10 +132,10 @@ gst_colorconvert_base_init (gpointer g_class)
GstElementClass *element_class = GST_ELEMENT_CLASS (g_class);
gst_element_class_add_pad_template (element_class,
gst_static_pad_template_get (&gst_colorconvert_src_template));
gst_element_class_add_pad_template (element_class,
gst_static_pad_template_get (&gst_colorconvert_sink_template));
gst_element_class_add_static_pad_template (element_class,
&gst_colorconvert_src_template);
gst_element_class_add_static_pad_template (element_class,
&gst_colorconvert_sink_template);
gst_element_class_set_details_simple (element_class, "Convert colorspace",
"Filter/Effect/Video",

View file

@ -130,10 +130,10 @@ gst_logoinsert_base_init (gpointer g_class)
GstElementClass *element_class = GST_ELEMENT_CLASS (g_class);
gst_element_class_add_pad_template (element_class,
gst_static_pad_template_get (&gst_logoinsert_src_template));
gst_element_class_add_pad_template (element_class,
gst_static_pad_template_get (&gst_logoinsert_sink_template));
gst_element_class_add_static_pad_template (element_class,
&gst_logoinsert_src_template);
gst_element_class_add_static_pad_template (element_class,
&gst_logoinsert_sink_template);
gst_element_class_set_details_simple (element_class,
"Overlay image onto video", "Filter/Effect/Video",

View file

@ -155,8 +155,7 @@ gst_curl_sink_base_init (gpointer g_class)
{
GstElementClass *element_class = GST_ELEMENT_CLASS (g_class);
gst_element_class_add_pad_template (element_class,
gst_static_pad_template_get (&sinktemplate));
gst_element_class_add_static_pad_template (element_class, &sinktemplate);
gst_element_class_set_details_simple (element_class,
"Curl sink",
"Sink/Network",

View file

@ -104,16 +104,18 @@ static void
gst_dc1394_base_init (gpointer g_class)
{
GstElementClass *element_class = GST_ELEMENT_CLASS (g_class);
GstPadTemplate *pad_template;
gst_element_class_set_details_simple (element_class, "1394 IIDC Video Source",
"Source/Video",
"libdc1394 based source, supports 1394 IIDC cameras",
"Antoine Tremblay <hexa00@gmail.com>");
gst_element_class_add_pad_template (element_class,
pad_template =
gst_pad_template_new ("src", GST_PAD_SRC, GST_PAD_ALWAYS,
gst_dc1394_get_all_dc1394_caps ()));
gst_dc1394_get_all_dc1394_caps ());
gst_element_class_add_pad_template (element_class, pad_template);
gst_object_unref (pad_template);
}
static void

View file

@ -103,10 +103,10 @@ gst_diracdec_base_init (gpointer g_class)
{
GstElementClass *element_class = GST_ELEMENT_CLASS (g_class);
gst_element_class_add_pad_template (element_class,
gst_static_pad_template_get (&gst_diracdec_src_pad_template));
gst_element_class_add_pad_template (element_class,
gst_static_pad_template_get (&gst_diracdec_sink_pad_template));
gst_element_class_add_static_pad_template (element_class,
&gst_diracdec_src_pad_template);
gst_element_class_add_static_pad_template (element_class,
&gst_diracdec_sink_pad_template);
gst_element_class_set_details_simple (element_class, "Dirac stream decoder",
"Codec/Decoder/Video", "Decode DIRAC streams",
"David Schleef <ds@schleef.org>, "

View file

@ -197,10 +197,10 @@ gst_dirac_enc_base_init (gpointer g_class)
{
GstElementClass *element_class = GST_ELEMENT_CLASS (g_class);
gst_element_class_add_pad_template (element_class,
gst_static_pad_template_get (&gst_dirac_enc_src_template));
gst_element_class_add_pad_template (element_class,
gst_static_pad_template_get (&gst_dirac_enc_sink_template));
gst_element_class_add_static_pad_template (element_class,
&gst_dirac_enc_src_template);
gst_element_class_add_static_pad_template (element_class,
&gst_dirac_enc_sink_template);
gst_element_class_set_details_simple (element_class, "Dirac Encoder",
"Codec/Encoder/Video",

View file

@ -2283,8 +2283,8 @@ gst_dfbvideosink_base_init (gpointer g_class)
"Sink/Video",
"A DirectFB based videosink", "Julien Moutte <julien@moutte.net>");
gst_element_class_add_pad_template (element_class,
gst_static_pad_template_get (&gst_dfbvideosink_sink_template_factory));
gst_element_class_add_static_pad_template (element_class,
&gst_dfbvideosink_sink_template_factory);
}
static void

View file

@ -130,10 +130,9 @@ gst_divxdec_base_init (GstDivxDecClass * klass)
{
GstElementClass *element_class = GST_ELEMENT_CLASS (klass);
gst_element_class_add_pad_template (element_class,
gst_static_pad_template_get (&sink_template));
gst_element_class_add_pad_template (element_class,
gst_static_pad_template_get (&src_template));
gst_element_class_add_static_pad_template (element_class,
&sink_template);
gst_element_class_add_static_pad_template (element_class, &src_template);
gst_element_class_set_details_simple (element_class,
"Divx4linux video decoder", "Codec/Decoder/Video",

View file

@ -141,10 +141,9 @@ gst_divxenc_base_init (GstDivxEncClass * klass)
{
GstElementClass *element_class = GST_ELEMENT_CLASS (klass);
gst_element_class_add_pad_template (element_class,
gst_static_pad_template_get (&sink_template));
gst_element_class_add_pad_template (element_class,
gst_static_pad_template_get (&src_template));
gst_element_class_add_static_pad_template (element_class,
&sink_template);
gst_element_class_add_static_pad_template (element_class, &src_template);
gst_element_class_set_details_simple (element_class,
"Divx4linux video encoder", "Codec/Encoder/Video",

View file

@ -153,10 +153,8 @@ gst_dtsdec_base_init (gpointer g_class)
{
GstElementClass *element_class = GST_ELEMENT_CLASS (g_class);
gst_element_class_add_pad_template (element_class,
gst_static_pad_template_get (&sink_factory));
gst_element_class_add_pad_template (element_class,
gst_static_pad_template_get (&src_factory));
gst_element_class_add_static_pad_template (element_class, &sink_factory);
gst_element_class_add_static_pad_template (element_class, &src_factory);
gst_element_class_set_details_simple (element_class, "DTS audio decoder",
"Codec/Decoder/Audio",
"Decodes DTS audio streams",

View file

@ -151,10 +151,9 @@ gst_faac_base_init (gpointer klass)
{
GstElementClass *element_class = GST_ELEMENT_CLASS (klass);
gst_element_class_add_pad_template (element_class,
gst_static_pad_template_get (&src_template));
gst_element_class_add_pad_template (element_class,
gst_static_pad_template_get (&sink_template));
gst_element_class_add_static_pad_template (element_class, &src_template);
gst_element_class_add_static_pad_template (element_class,
&sink_template);
gst_element_class_set_details_simple (element_class, "AAC audio encoder",
"Codec/Encoder/Audio",

View file

@ -161,10 +161,9 @@ gst_faad_base_init (gpointer klass)
{
GstElementClass *element_class = GST_ELEMENT_CLASS (klass);
gst_element_class_add_pad_template (element_class,
gst_static_pad_template_get (&src_template));
gst_element_class_add_pad_template (element_class,
gst_static_pad_template_get (&sink_template));
gst_element_class_add_static_pad_template (element_class, &src_template);
gst_element_class_add_static_pad_template (element_class,
&sink_template);
gst_element_class_set_details_simple (element_class, "AAC audio decoder",
"Codec/Decoder/Audio",

View file

@ -118,8 +118,8 @@ gst_flite_test_src_base_init (gpointer g_class)
GST_DEBUG_CATEGORY_INIT (flite_test_src_debug, "flitetestsrc", 0,
"Flite Audio Test Source");
gst_element_class_add_pad_template (element_class,
gst_static_pad_template_get (&gst_flite_test_src_src_template));
gst_element_class_add_static_pad_template (element_class,
&gst_flite_test_src_src_template);
gst_element_class_set_details_simple (element_class,
"Flite speech test source", "Source/Audio",
"Creates audio test signals identifying channels",

View file

@ -114,10 +114,8 @@ gst_gme_dec_base_init (gpointer g_class)
"Chris Lee <clee@kde.org>, Brian Koropoff <bkoropoff@gmail.com>, "
"Michael Pyne <mpyne@kde.org>, Sebastian Dröge <sebastian.droege@collabora.co.uk>");
gst_element_class_add_pad_template (element_class,
gst_static_pad_template_get (&sink_factory));
gst_element_class_add_pad_template (element_class,
gst_static_pad_template_get (&src_factory));
gst_element_class_add_static_pad_template (element_class, &sink_factory);
gst_element_class_add_static_pad_template (element_class, &src_factory);
}
static void

View file

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

View file

@ -106,10 +106,10 @@ gst_gsmdec_base_init (gpointer g_class)
{
GstElementClass *element_class = GST_ELEMENT_CLASS (g_class);
gst_element_class_add_pad_template (element_class,
gst_static_pad_template_get (&gsmdec_sink_template));
gst_element_class_add_pad_template (element_class,
gst_static_pad_template_get (&gsmdec_src_template));
gst_element_class_add_static_pad_template (element_class,
&gsmdec_sink_template);
gst_element_class_add_static_pad_template (element_class,
&gsmdec_src_template);
gst_element_class_set_details_simple (element_class, "GSM audio decoder",
"Codec/Decoder/Audio",
"Decodes GSM encoded audio", "Philippe Khalaf <burger@speedy.org>");

View file

@ -100,10 +100,10 @@ gst_gsmenc_base_init (gpointer g_class)
{
GstElementClass *element_class = GST_ELEMENT_CLASS (g_class);
gst_element_class_add_pad_template (element_class,
gst_static_pad_template_get (&gsmenc_sink_template));
gst_element_class_add_pad_template (element_class,
gst_static_pad_template_get (&gsmenc_src_template));
gst_element_class_add_static_pad_template (element_class,
&gsmenc_sink_template);
gst_element_class_add_static_pad_template (element_class,
&gsmenc_src_template);
gst_element_class_set_details_simple (element_class, "GSM audio encoder",
"Codec/Encoder/Audio",
"Encodes GSM audio", "Philippe Khalaf <burger@speedy.org>");

View file

@ -501,10 +501,10 @@ gst_hermes_colorspace_base_init (gpointer g_class)
{
GstElementClass *element_class = GST_ELEMENT_CLASS (g_class);
gst_element_class_add_pad_template (element_class,
gst_static_pad_template_get (&gst_hermes_colorspace_src_pad_template));
gst_element_class_add_pad_template (element_class,
gst_static_pad_template_get (&gst_hermes_colorspace_sink_pad_template));
gst_element_class_add_static_pad_template (element_class,
&gst_hermes_colorspace_src_pad_template);
gst_element_class_add_static_pad_template (element_class,
&gst_hermes_colorspace_sink_pad_template);
gst_element_class_set_details_simple (element_class, "Colorspace converter",
"Filter/Converter/Video",

View file

@ -95,10 +95,10 @@ gst_jasper_dec_base_init (gpointer g_class)
{
GstElementClass *element_class = GST_ELEMENT_CLASS (g_class);
gst_element_class_add_pad_template (element_class,
gst_static_pad_template_get (&gst_jasper_dec_src_template));
gst_element_class_add_pad_template (element_class,
gst_static_pad_template_get (&gst_jasper_dec_sink_template));
gst_element_class_add_static_pad_template (element_class,
&gst_jasper_dec_src_template);
gst_element_class_add_static_pad_template (element_class,
&gst_jasper_dec_sink_template);
gst_element_class_set_details_simple (element_class,
"Jasper JPEG2000 image decoder", "Codec/Decoder/Image",
"Decodes JPEG2000 encoded images using jasper",

View file

@ -99,10 +99,10 @@ gst_jasper_enc_base_init (gpointer g_class)
{
GstElementClass *element_class = GST_ELEMENT_CLASS (g_class);
gst_element_class_add_pad_template (element_class,
gst_static_pad_template_get (&gst_jasper_enc_src_template));
gst_element_class_add_pad_template (element_class,
gst_static_pad_template_get (&gst_jasper_enc_sink_template));
gst_element_class_add_static_pad_template (element_class,
&gst_jasper_enc_src_template);
gst_element_class_add_static_pad_template (element_class,
&gst_jasper_enc_sink_template);
gst_element_class_set_details_simple (element_class,
"Jasper JPEG2000 image encoder", "Codec/Encoder/Image",
"Encodes video to JPEG2000 using jasper",

View file

@ -138,10 +138,8 @@ gst_kate_dec_base_init (gpointer gclass)
GstElementClass *element_class = GST_ELEMENT_CLASS (gclass);
gst_element_class_add_pad_template (element_class,
gst_static_pad_template_get (&src_factory));
gst_element_class_add_pad_template (element_class,
gst_static_pad_template_get (&sink_factory));
gst_element_class_add_static_pad_template (element_class, &src_factory);
gst_element_class_add_static_pad_template (element_class, &sink_factory);
gst_element_class_set_details_simple (element_class,
"Kate stream text decoder", "Codec/Decoder/Subtitle",
"Decodes Kate text streams",

View file

@ -153,10 +153,8 @@ gst_kate_enc_base_init (gpointer gclass)
GstElementClass *element_class = GST_ELEMENT_CLASS (gclass);
gst_element_class_add_pad_template (element_class,
gst_static_pad_template_get (&src_factory));
gst_element_class_add_pad_template (element_class,
gst_static_pad_template_get (&sink_factory));
gst_element_class_add_static_pad_template (element_class, &src_factory);
gst_element_class_add_static_pad_template (element_class, &sink_factory);
gst_element_class_set_details_simple (element_class, "Kate stream encoder",
"Codec/Encoder/Subtitle",
"Encodes Kate streams from text or subpictures",

View file

@ -103,10 +103,10 @@ gst_kate_parse_base_init (gpointer g_class)
{
GstElementClass *element_class = GST_ELEMENT_CLASS (g_class);
gst_element_class_add_pad_template (element_class,
gst_static_pad_template_get (&gst_kate_parse_src_factory));
gst_element_class_add_pad_template (element_class,
gst_static_pad_template_get (&gst_kate_parse_sink_factory));
gst_element_class_add_static_pad_template (element_class,
&gst_kate_parse_src_factory);
gst_element_class_add_static_pad_template (element_class,
&gst_kate_parse_sink_factory);
gst_element_class_set_details_simple (element_class, "Kate stream parser",
"Codec/Parser/Subtitle",
"parse raw kate streams",

View file

@ -195,12 +195,11 @@ gst_kate_tiger_base_init (gpointer gclass)
GstElementClass *element_class = GST_ELEMENT_CLASS (gclass);
gst_element_class_add_pad_template (element_class,
gst_static_pad_template_get (&src_factory));
gst_element_class_add_pad_template (element_class,
gst_static_pad_template_get (&kate_sink_factory));
gst_element_class_add_pad_template (element_class,
gst_static_pad_template_get (&video_sink_factory));
gst_element_class_add_static_pad_template (element_class, &src_factory);
gst_element_class_add_static_pad_template (element_class,
&kate_sink_factory);
gst_element_class_add_static_pad_template (element_class,
&video_sink_factory);
gst_element_class_set_details_simple (element_class, "Kate stream renderer",
"Mixer/Video/Overlay/Subtitle",
"Decodes and renders Kate streams on top of a video",

View file

@ -334,10 +334,10 @@ gst_colorspace_base_init (GstColorspaceClass * klass)
{
GstElementClass *element_class = GST_ELEMENT_CLASS (klass);
gst_element_class_add_pad_template (element_class,
gst_static_pad_template_get (&gst_colorspace_src_template));
gst_element_class_add_pad_template (element_class,
gst_static_pad_template_get (&gst_colorspace_sink_template));
gst_element_class_add_static_pad_template (element_class,
&gst_colorspace_src_template);
gst_element_class_add_static_pad_template (element_class,
&gst_colorspace_sink_template);
gst_element_class_set_details_simple (element_class, "Colorspace converter",
"Filter/Effect",
"Converts video from one colorspace to another",

View file

@ -172,10 +172,9 @@ gst_fameenc_base_init (GstFameEncClass * klass)
{
GstElementClass *element_class = GST_ELEMENT_CLASS (klass);
gst_element_class_add_pad_template (element_class,
gst_static_pad_template_get (&sink_template));
gst_element_class_add_pad_template (element_class,
gst_static_pad_template_get (&src_template));
gst_element_class_add_static_pad_template (element_class,
&sink_template);
gst_element_class_add_static_pad_template (element_class, &src_template);
gst_element_class_set_details_simple (element_class,
"MPEG-1 and MPEG-4 video encoder", "Codec/Encoder/Video",

View file

@ -91,8 +91,7 @@ gst_mms_base_init (gpointer g_class)
{
GstElementClass *element_class = GST_ELEMENT_CLASS (g_class);
gst_element_class_add_pad_template (element_class,
gst_static_pad_template_get (&src_factory));
gst_element_class_add_static_pad_template (element_class, &src_factory);
gst_element_class_set_details_simple (element_class, "MMS streaming source",
"Source/Network",
"Receive data streamed via MSFT Multi Media Server protocol",

View file

@ -87,10 +87,8 @@ gst_mim_dec_base_init (gpointer klass)
{
GstElementClass *element_class = GST_ELEMENT_CLASS (klass);
gst_element_class_add_pad_template (element_class,
gst_static_pad_template_get (&src_factory));
gst_element_class_add_pad_template (element_class,
gst_static_pad_template_get (&sink_factory));
gst_element_class_add_static_pad_template (element_class, &src_factory);
gst_element_class_add_static_pad_template (element_class, &sink_factory);
gst_element_class_set_details_simple (element_class,
"Mimic Decoder",

View file

@ -125,10 +125,8 @@ gst_mim_enc_base_init (gpointer klass)
" when no data is received",
FALSE, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
gst_element_class_add_pad_template (element_class,
gst_static_pad_template_get (&src_factory));
gst_element_class_add_pad_template (element_class,
gst_static_pad_template_get (&sink_factory));
gst_element_class_add_static_pad_template (element_class, &src_factory);
gst_element_class_add_static_pad_template (element_class, &sink_factory);
gst_element_class_set_details_simple (element_class,
"Mimic Encoder",
"Codec/Encoder/Video",

View file

@ -149,10 +149,10 @@ gst_modplug_base_init (gpointer g_class)
{
GstElementClass *element_class = GST_ELEMENT_CLASS (g_class);
gst_element_class_add_pad_template (element_class,
gst_static_pad_template_get (&modplug_sink_template_factory));
gst_element_class_add_pad_template (element_class,
gst_static_pad_template_get (&modplug_src_template_factory));
gst_element_class_add_static_pad_template (element_class,
&modplug_sink_template_factory);
gst_element_class_add_static_pad_template (element_class,
&modplug_src_template_factory);
gst_element_class_set_details_simple (element_class, "ModPlug",
"Codec/Decoder/Audio", "Module decoder based on modplug engine",
@ -379,7 +379,6 @@ gst_modplug_src_event (GstPad * pad, GstEvent * event)
GST_DEBUG_OBJECT (modplug, "no song loaded yet");
break;
}
#if 0
timestamp = gst_util_uint64_scale_int (modplug->offset, GST_SECOND,
modplug->frequency);

View file

@ -126,10 +126,9 @@ gst_mpeg2enc_base_init (gpointer klass)
"Andrew Stevens <andrew.stevens@nexgo.de>\n"
"Ronald Bultje <rbultje@ronald.bitfreak.net>");
gst_element_class_add_pad_template (element_class,
gst_static_pad_template_get (&src_template));
gst_element_class_add_pad_template (element_class,
gst_static_pad_template_get (&sink_template));
gst_element_class_add_static_pad_template (element_class, &src_template);
gst_element_class_add_static_pad_template (element_class,
&sink_template);
}
static void

View file

@ -131,12 +131,11 @@ gst_mplex_base_init (gpointer klass)
"Ronald Bultje <rbultje@ronald.bitfreak.net>\n"
"Mark Nauwelaerts <mnauw@users.sourceforge.net>");
gst_element_class_add_pad_template (element_class,
gst_static_pad_template_get (&src_templ));
gst_element_class_add_pad_template (element_class,
gst_static_pad_template_get (&video_sink_templ));
gst_element_class_add_pad_template (element_class,
gst_static_pad_template_get (&audio_sink_templ));
gst_element_class_add_static_pad_template (element_class, &src_templ);
gst_element_class_add_static_pad_template (element_class,
&video_sink_templ);
gst_element_class_add_static_pad_template (element_class,
&audio_sink_templ);
}
static void

View file

@ -79,10 +79,9 @@ gst_musepackdec_base_init (gpointer klass)
{
GstElementClass *element_class = GST_ELEMENT_CLASS (klass);
gst_element_class_add_pad_template (element_class,
gst_static_pad_template_get (&src_template));
gst_element_class_add_pad_template (element_class,
gst_static_pad_template_get (&sink_template));
gst_element_class_add_static_pad_template (element_class, &src_template);
gst_element_class_add_static_pad_template (element_class,
&sink_template);
gst_element_class_set_details_simple (element_class, "Musepack decoder",
"Codec/Decoder/Audio",

View file

@ -112,10 +112,9 @@ gst_trm_base_init (gpointer klass)
{
GstElementClass *element_class = GST_ELEMENT_CLASS (klass);
gst_element_class_add_pad_template (element_class,
gst_static_pad_template_get (&src_template));
gst_element_class_add_pad_template (element_class,
gst_static_pad_template_get (&sink_template));
gst_element_class_add_static_pad_template (element_class, &src_template);
gst_element_class_add_static_pad_template (element_class,
&sink_template);
gst_element_class_set_details_simple (element_class,
"MusicBrainz TRM generator", "Filter/Analyzer/Audio",

View file

@ -156,8 +156,7 @@ GST_BOILERPLATE_FULL (GstMythtvSrc, gst_mythtv_src, GstPushSrc,
{
GstElementClass *element_class = GST_ELEMENT_CLASS (g_class);
gst_element_class_add_pad_template (element_class,
gst_static_pad_template_get (&srctemplate));
gst_element_class_add_static_pad_template (element_class, &srctemplate);
gst_element_class_set_details_simple (element_class, "MythTV client source",
"Source/Network",

View file

@ -95,8 +95,7 @@ gst_nas_sink_base_init (gpointer g_class)
{
GstElementClass *element_class = GST_ELEMENT_CLASS (g_class);
gst_element_class_add_pad_template (element_class,
gst_static_pad_template_get (&sink_factory));
gst_element_class_add_static_pad_template (element_class, &sink_factory);
gst_element_class_set_details_simple (element_class, "NAS audio sink",
"Sink/Audio",
"Plays audio to a Network Audio Server",

View file

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

View file

@ -162,15 +162,14 @@ static void
gst_openal_sink_base_init (gpointer gclass)
{
GstElementClass *element_class = GST_ELEMENT_CLASS (gclass);
GstPadTemplate *pad_template;
gst_element_class_set_details_simple (element_class, "Audio sink (OpenAL)",
"Sink/Audio",
"Output to a sound device via OpenAL",
"Chris Robinson <chris.kcat@gmail.com>");
pad_template = gst_static_pad_template_get (&openalsink_sink_factory);
gst_element_class_add_pad_template (element_class, pad_template);
gst_element_class_add_static_pad_template (element_class,
&openalsink_sink_factory);
}
/* initialize the plugin's class */

View file

@ -142,9 +142,7 @@ gst_openal_src_base_init (gpointer gclass)
"OpenAL source capture audio from device",
"Victor Lin <bornstub@gmail.com>");
gst_element_class_add_pad_template (element_class,
gst_static_pad_template_get (&src_factory)
);
gst_element_class_add_static_pad_template (element_class, &src_factory);
}
static void

View file

@ -77,10 +77,8 @@ gst_cv_equalize_hist_base_init (gpointer gclass)
{
GstElementClass *element_class = GST_ELEMENT_CLASS (gclass);
gst_element_class_add_pad_template (element_class,
gst_static_pad_template_get (&src_factory));
gst_element_class_add_pad_template (element_class,
gst_static_pad_template_get (&sink_factory));
gst_element_class_add_static_pad_template (element_class, &src_factory);
gst_element_class_add_static_pad_template (element_class, &sink_factory);
gst_element_class_set_details_simple (element_class,
"cvequalizehist",

View file

@ -122,10 +122,8 @@ gst_cv_laplace_base_init (gpointer gclass)
{
GstElementClass *element_class = GST_ELEMENT_CLASS (gclass);
gst_element_class_add_pad_template (element_class,
gst_static_pad_template_get (&src_factory));
gst_element_class_add_pad_template (element_class,
gst_static_pad_template_get (&sink_factory));
gst_element_class_add_static_pad_template (element_class, &src_factory);
gst_element_class_add_static_pad_template (element_class, &sink_factory);
gst_element_class_set_details_simple (element_class,
"cvlaplace",

View file

@ -110,10 +110,8 @@ gst_cv_sobel_base_init (gpointer gclass)
{
GstElementClass *element_class = GST_ELEMENT_CLASS (gclass);
gst_element_class_add_pad_template (element_class,
gst_static_pad_template_get (&src_factory));
gst_element_class_add_pad_template (element_class,
gst_static_pad_template_get (&sink_factory));
gst_element_class_add_static_pad_template (element_class, &src_factory);
gst_element_class_add_static_pad_template (element_class, &sink_factory);
gst_element_class_set_details_simple (element_class,
"cvsobel",

View file

@ -138,10 +138,8 @@ gst_edge_detect_base_init (gpointer gclass)
"Performs canny edge detection on videos and images.",
"Michael Sheldon <mike@mikeasoft.com>");
gst_element_class_add_pad_template (element_class,
gst_static_pad_template_get (&src_factory));
gst_element_class_add_pad_template (element_class,
gst_static_pad_template_get (&sink_factory));
gst_element_class_add_static_pad_template (element_class, &src_factory);
gst_element_class_add_static_pad_template (element_class, &sink_factory);
}
/* initialize the edgedetect's class */

View file

@ -138,10 +138,8 @@ gst_face_blur_base_init (gpointer gclass)
"Blurs faces in images and videos",
"Michael Sheldon <mike@mikeasoft.com>");
gst_element_class_add_pad_template (element_class,
gst_static_pad_template_get (&src_factory));
gst_element_class_add_pad_template (element_class,
gst_static_pad_template_get (&sink_factory));
gst_element_class_add_static_pad_template (element_class, &src_factory);
gst_element_class_add_static_pad_template (element_class, &sink_factory);
}
/* initialize the faceblur's class */

View file

@ -220,10 +220,8 @@ gst_face_detect_base_init (gpointer gclass)
"Performs face detection on videos and images, providing detected positions via bus messages",
"Michael Sheldon <mike@mikeasoft.com>");
gst_element_class_add_pad_template (element_class,
gst_static_pad_template_get (&src_factory));
gst_element_class_add_pad_template (element_class,
gst_static_pad_template_get (&sink_factory));
gst_element_class_add_static_pad_template (element_class, &src_factory);
gst_element_class_add_static_pad_template (element_class, &sink_factory);
}
/* initialize the facedetect's class */

View file

@ -211,10 +211,8 @@ gst_motion_cells_base_init (gpointer gclass)
"Performs motion detection on videos and images, providing detected motion cells index via bus messages",
"Robert Jobbagy <jobbagy dot robert at gmail dot com>, Nicola Murino <nicola dot murino at gmail.com>");
gst_element_class_add_pad_template (element_class,
gst_static_pad_template_get (&src_factory));
gst_element_class_add_pad_template (element_class,
gst_static_pad_template_get (&sink_factory));
gst_element_class_add_static_pad_template (element_class, &src_factory);
gst_element_class_add_static_pad_template (element_class, &sink_factory);
}
/* initialize the motioncells's class */

View file

@ -139,10 +139,8 @@ gst_pyramid_segment_base_init (gpointer gclass)
"Applies pyramid segmentation to a video or image.",
"Michael Sheldon <mike@mikeasoft.com>");
gst_element_class_add_pad_template (element_class,
gst_static_pad_template_get (&src_factory));
gst_element_class_add_pad_template (element_class,
gst_static_pad_template_get (&sink_factory));
gst_element_class_add_static_pad_template (element_class, &src_factory);
gst_element_class_add_static_pad_template (element_class, &sink_factory);
}
/* initialize the pyramidsegment's class */

View file

@ -129,10 +129,8 @@ gst_template_match_base_init (gpointer gclass)
"Performs template matching on videos and images, providing detected positions via bus messages.",
"Noam Lewis <jones.noamle@gmail.com>");
gst_element_class_add_pad_template (element_class,
gst_static_pad_template_get (&src_factory));
gst_element_class_add_pad_template (element_class,
gst_static_pad_template_get (&sink_factory));
gst_element_class_add_static_pad_template (element_class, &src_factory);
gst_element_class_add_static_pad_template (element_class, &sink_factory);
}
/* initialize the templatematch's class */

View file

@ -156,10 +156,8 @@ gst_opencv_text_overlay_base_init (gpointer gclass)
"Filter/Effect/Video",
"Write text on the top of video", "sreerenj<bsreerenj@gmail.com>");
gst_element_class_add_pad_template (element_class,
gst_static_pad_template_get (&src_factory));
gst_element_class_add_pad_template (element_class,
gst_static_pad_template_get (&sink_factory));
gst_element_class_add_static_pad_template (element_class, &src_factory);
gst_element_class_add_static_pad_template (element_class, &sink_factory);
}
/* initialize the opencvtextoverlay's class */

View file

@ -103,10 +103,10 @@ gst_opus_dec_base_init (gpointer g_class)
{
GstElementClass *element_class = GST_ELEMENT_CLASS (g_class);
gst_element_class_add_pad_template (element_class,
gst_static_pad_template_get (&opus_dec_src_factory));
gst_element_class_add_pad_template (element_class,
gst_static_pad_template_get (&opus_dec_sink_factory));
gst_element_class_add_static_pad_template (element_class,
&opus_dec_src_factory);
gst_element_class_add_static_pad_template (element_class,
&opus_dec_sink_factory);
gst_element_class_set_details_simple (element_class, "Opus audio decoder",
"Codec/Decoder/Audio",
"decode opus streams to audio",

View file

@ -204,10 +204,8 @@ gst_opus_enc_base_init (gpointer g_class)
{
GstElementClass *element_class = GST_ELEMENT_CLASS (g_class);
gst_element_class_add_pad_template (element_class,
gst_static_pad_template_get (&src_factory));
gst_element_class_add_pad_template (element_class,
gst_static_pad_template_get (&sink_factory));
gst_element_class_add_static_pad_template (element_class, &src_factory);
gst_element_class_add_static_pad_template (element_class, &sink_factory);
gst_element_class_set_details_simple (element_class, "Opus audio encoder",
"Codec/Encoder/Audio",
"Encodes audio in Opus format",

View file

@ -101,12 +101,12 @@ rsn_dvdbin_base_init (gpointer gclass)
GstElementClass *element_class = GST_ELEMENT_CLASS (gclass);
gst_element_class_add_pad_template (element_class,
gst_static_pad_template_get (&video_src_template));
gst_element_class_add_pad_template (element_class,
gst_static_pad_template_get (&audio_src_template));
gst_element_class_add_pad_template (element_class,
gst_static_pad_template_get (&subpicture_src_template));
gst_element_class_add_static_pad_template (element_class,
&video_src_template);
gst_element_class_add_static_pad_template (element_class,
&audio_src_template);
gst_element_class_add_static_pad_template (element_class,
&subpicture_src_template);
gst_element_class_set_details_simple (element_class, "rsndvdbin",
"Generic/Bin/Player",
"DVD playback element", "Jan Schmidt <thaytan@noraisin.net>");

View file

@ -193,8 +193,7 @@ rsn_dvdsrc_base_init (gpointer gclass)
GstElementClass *element_class = GST_ELEMENT_CLASS (gclass);
gst_element_class_add_pad_template (element_class,
gst_static_pad_template_get (&src_factory));
gst_element_class_add_static_pad_template (element_class, &src_factory);
gst_element_class_set_details_simple (element_class, "Resin DVD Src",
"Source/DVD", "DVD source element", "Jan Schmidt <thaytan@noraisin.net>");
}

View file

@ -84,10 +84,9 @@ rsn_audiomunge_class_init (RsnAudioMungeClass * klass)
GST_DEBUG_CATEGORY_INIT (rsn_audiomunge_debug, "rsnaudiomunge",
0, "ResinDVD audio stream regulator");
gst_element_class_add_pad_template (element_class,
gst_static_pad_template_get (&src_template));
gst_element_class_add_pad_template (element_class,
gst_static_pad_template_get (&sink_template));
gst_element_class_add_static_pad_template (element_class, &src_template);
gst_element_class_add_static_pad_template (element_class,
&sink_template);
gst_element_class_set_details_simple (element_class, "RsnAudioMunge",
"Audio/Filter",

View file

@ -381,10 +381,10 @@ rsn_audiodec_class_init (RsnAudioDecClass * klass)
GstElementClass *element_class = GST_ELEMENT_CLASS (klass);
RsnDecClass *dec_class = RSN_DEC_CLASS (klass);
gst_element_class_add_pad_template (element_class,
gst_static_pad_template_get (&audio_src_template));
gst_element_class_add_pad_template (element_class,
gst_static_pad_template_get (&audio_sink_template));
gst_element_class_add_static_pad_template (element_class,
&audio_src_template);
gst_element_class_add_static_pad_template (element_class,
&audio_sink_template);
gst_element_class_set_details_simple (element_class, "RsnAudioDec",
"Audio/Decoder",
@ -431,10 +431,10 @@ rsn_videodec_class_init (RsnAudioDecClass * klass)
GstElementClass *element_class = GST_ELEMENT_CLASS (klass);
RsnDecClass *dec_class = RSN_DEC_CLASS (klass);
gst_element_class_add_pad_template (element_class,
gst_static_pad_template_get (&video_src_template));
gst_element_class_add_pad_template (element_class,
gst_static_pad_template_get (&video_sink_template));
gst_element_class_add_static_pad_template (element_class,
&video_src_template);
gst_element_class_add_static_pad_template (element_class,
&video_sink_template);
gst_element_class_set_details_simple (element_class, "RsnVideoDec",
"Video/Decoder",

View file

@ -59,10 +59,8 @@ rsn_parsetter_base_init (gpointer gclass)
GstElementClass *element_class = GST_ELEMENT_CLASS (gclass);
gst_element_class_add_pad_template (element_class,
gst_static_pad_template_get (&src_factory));
gst_element_class_add_pad_template (element_class,
gst_static_pad_template_get (&sink_factory));
gst_element_class_add_static_pad_template (element_class, &src_factory);
gst_element_class_add_static_pad_template (element_class, &sink_factory);
gst_element_class_set_details_simple (element_class,
"Resin Aspect Ratio Setter", "Filter/Video",
"Overrides caps on video buffers to force a particular display ratio",

View file

@ -481,10 +481,10 @@ rsn_stream_selector_base_init (RsnStreamSelectorClass * klass)
"Ronald S. Bultje <rbultje@ronald.bitfreak.net>, "
"Jan Schmidt <thaytan@mad.scientist.com>, "
"Wim Taymans <wim.taymans@gmail.com>");
gst_element_class_add_pad_template (element_class,
gst_static_pad_template_get (&rsn_stream_selector_sink_factory));
gst_element_class_add_pad_template (element_class,
gst_static_pad_template_get (&rsn_stream_selector_src_factory));
gst_element_class_add_static_pad_template (element_class,
&rsn_stream_selector_sink_factory);
gst_element_class_add_static_pad_template (element_class,
&rsn_stream_selector_src_factory);
}
static void

View file

@ -82,10 +82,8 @@ gst_rsvg_dec_base_init (gpointer g_class)
"Uses librsvg to decode SVG images",
"Sebastian Dröge <sebastian.droege@collabora.co.uk>");
gst_element_class_add_pad_template (element_class,
gst_static_pad_template_get (&sink_factory));
gst_element_class_add_pad_template (element_class,
gst_static_pad_template_get (&src_factory));
gst_element_class_add_static_pad_template (element_class, &sink_factory);
gst_element_class_add_static_pad_template (element_class, &src_factory);
}
static void

View file

@ -446,12 +446,11 @@ gst_rsvg_overlay_base_init (gpointer klass)
{
GstElementClass *element_class = GST_ELEMENT_CLASS (klass);
gst_element_class_add_pad_template (element_class,
gst_static_pad_template_get (&src_template));
gst_element_class_add_pad_template (element_class,
gst_static_pad_template_get (&video_sink_template));
gst_element_class_add_pad_template (element_class,
gst_static_pad_template_get (&data_sink_template));
gst_element_class_add_static_pad_template (element_class, &src_template);
gst_element_class_add_static_pad_template (element_class,
&video_sink_template);
gst_element_class_add_static_pad_template (element_class,
&data_sink_template);
gst_element_class_set_details_simple (element_class, "RSVG overlay",
"Filter/Editor/Video",

View file

@ -109,8 +109,8 @@ gst_rtmp_sink_base_init (gpointer klass)
"Sink/Network", "Sends FLV content to a server via RTMP",
"Jan Schmidt <thaytan@noraisin.net>");
gst_element_class_add_pad_template (element_class,
gst_static_pad_template_get (&sink_template));
gst_element_class_add_static_pad_template (element_class,
&sink_template);
}
/* initialize the plugin's class */

View file

@ -114,8 +114,7 @@ gst_rtmp_src_base_init (gpointer g_class)
{
GstElementClass *element_class = GST_ELEMENT_CLASS (g_class);
gst_element_class_add_pad_template (element_class,
gst_static_pad_template_get (&srctemplate));
gst_element_class_add_static_pad_template (element_class, &srctemplate);
gst_element_class_set_details_simple (element_class,
"RTMP Source",

View file

@ -114,10 +114,10 @@ gst_schro_dec_base_init (gpointer g_class)
GstElementClass *element_class = GST_ELEMENT_CLASS (g_class);
gst_element_class_add_pad_template (element_class,
gst_static_pad_template_get (&gst_schro_dec_src_template));
gst_element_class_add_pad_template (element_class,
gst_static_pad_template_get (&gst_schro_dec_sink_template));
gst_element_class_add_static_pad_template (element_class,
&gst_schro_dec_src_template);
gst_element_class_add_static_pad_template (element_class,
&gst_schro_dec_sink_template);
gst_element_class_set_details_simple (element_class, "Dirac Decoder",
"Codec/Decoder/Video",

View file

@ -125,10 +125,10 @@ gst_schro_enc_base_init (gpointer g_class)
GstElementClass *element_class = GST_ELEMENT_CLASS (g_class);
gst_element_class_add_pad_template (element_class,
gst_static_pad_template_get (&gst_schro_enc_src_template));
gst_element_class_add_pad_template (element_class,
gst_static_pad_template_get (&gst_schro_enc_sink_template));
gst_element_class_add_static_pad_template (element_class,
&gst_schro_enc_src_template);
gst_element_class_add_static_pad_template (element_class,
&gst_schro_enc_sink_template);
gst_element_class_set_details_simple (element_class, "Dirac Encoder",
"Codec/Encoder/Video",

View file

@ -149,8 +149,8 @@ gst_sdlaudio_sink_base_init (gpointer g_class)
"Output to a sound card via SDLAUDIO",
"Edgard Lima <edgard.lima@indt.org.br>");
gst_element_class_add_pad_template (element_class,
gst_static_pad_template_get (&sdlaudiosink_sink_factory));
gst_element_class_add_static_pad_template (element_class,
&sdlaudiosink_sink_factory);
}
static void

View file

@ -151,6 +151,7 @@ gst_sdlvideosink_base_init (gpointer g_class)
GST_PAD_SINK, GST_PAD_ALWAYS, capslist);
gst_element_class_add_pad_template (element_class, sink_template);
gst_object_unref (sink_template);
gst_element_class_set_details_simple (element_class, "SDL video sink",
"Sink/Video", "An SDL-based videosink",
"Ronald Bultje <rbultje@ronald.bitfreak.net>, "

View file

@ -110,8 +110,8 @@ gst_icecastsend_base_init (GstIcecastSendClass * klass)
{
GstElementClass *element_class = GST_ELEMENT_CLASS (klass);
gst_element_class_add_pad_template (element_class,
gst_static_pad_template_get (&sink_template_factory));
gst_element_class_add_static_pad_template (element_class,
&sink_template_factory);
gst_element_class_set_details_simple (element_class, "Icecast network sink",
"Sink/Network",
"Sends data to an icecast server using libshout",

View file

@ -116,10 +116,10 @@ gst_snapshot_base_init (gpointer g_class)
{
GstElementClass *element_class = GST_ELEMENT_CLASS (g_class);
gst_element_class_add_pad_template (element_class,
gst_static_pad_template_get (&snapshot_sink_factory));
gst_element_class_add_pad_template (element_class,
gst_static_pad_template_get (&snapshot_src_factory));
gst_element_class_add_static_pad_template (element_class,
&snapshot_sink_factory);
gst_element_class_add_static_pad_template (element_class,
&snapshot_src_factory);
gst_element_class_set_details_simple (element_class, "Snapshot",
"Filter/Editor/Video",

View file

@ -84,8 +84,8 @@ gst_sf_sink_base_init (gpointer g_class)
GstElementClass *element_class = GST_ELEMENT_CLASS (g_class);
GST_DEBUG_CATEGORY_INIT (gst_sf_debug, "sfsink", 0, "sfsink element");
gst_element_class_add_pad_template (element_class,
gst_static_pad_template_get (&sf_sink_factory));
gst_element_class_add_static_pad_template (element_class,
&sf_sink_factory);
gst_element_class_set_details_simple (element_class, "Sndfile sink",
"Sink/Audio",
"Write audio streams to disk using libsndfile",

View file

@ -83,8 +83,8 @@ gst_sf_src_base_init (gpointer g_class)
{
GstElementClass *gstelement_class = GST_ELEMENT_CLASS (g_class);
gst_element_class_add_pad_template (gstelement_class,
gst_static_pad_template_get (&sf_src_factory));
gst_element_class_add_static_pad_template (gstelement_class,
&sf_src_factory);
gst_element_class_set_details_simple (gstelement_class, "Sndfile source",
"Source/Audio",

View file

@ -106,10 +106,10 @@ gst_pitch_base_init (gpointer g_class)
{
GstElementClass *gstelement_class = GST_ELEMENT_CLASS (g_class);
gst_element_class_add_pad_template (gstelement_class,
gst_static_pad_template_get (&gst_pitch_src_template));
gst_element_class_add_pad_template (gstelement_class,
gst_static_pad_template_get (&gst_pitch_sink_template));
gst_element_class_add_static_pad_template (gstelement_class,
&gst_pitch_src_template);
gst_element_class_add_static_pad_template (gstelement_class,
&gst_pitch_sink_template);
gst_element_class_set_details_simple (gstelement_class, "Pitch controller",
"Filter/Converter/Audio", "Control the pitch of an audio stream",

View file

@ -71,10 +71,8 @@ gst_span_plc_base_init (gpointer gclass)
{
GstElementClass *element_class = (GstElementClass *) gclass;
gst_element_class_add_pad_template (element_class,
gst_static_pad_template_get (&src_factory));
gst_element_class_add_pad_template (element_class,
gst_static_pad_template_get (&sink_factory));
gst_element_class_add_static_pad_template (element_class, &src_factory);
gst_element_class_add_static_pad_template (element_class, &sink_factory);
gst_element_class_set_details_simple (element_class, "SpanDSP PLC",
"Filter/Effect/Audio",

View file

@ -108,10 +108,8 @@ gst_spc_dec_base_init (gpointer g_class)
"Uses OpenSPC to emulate an SPC processor",
"Chris Lee <clee@kde.org>, Brian Koropoff <bkoropoff@gmail.com>");
gst_element_class_add_pad_template (element_class,
gst_static_pad_template_get (&sink_factory));
gst_element_class_add_pad_template (element_class,
gst_static_pad_template_get (&src_factory));
gst_element_class_add_static_pad_template (element_class, &sink_factory);
gst_element_class_add_static_pad_template (element_class, &src_factory);
}
static void

View file

@ -213,12 +213,12 @@ gst_swfdec_base_init (gpointer g_class)
"Uses libswfdec to decode Flash video streams",
"David Schleef <ds@schleef.org>");
gst_element_class_add_pad_template (element_class,
gst_static_pad_template_get (&video_template_factory));
gst_element_class_add_pad_template (element_class,
gst_static_pad_template_get (&audio_template_factory));
gst_element_class_add_pad_template (element_class,
gst_static_pad_template_get (&sink_template_factory));
gst_element_class_add_static_pad_template (element_class,
&video_template_factory);
gst_element_class_add_static_pad_template (element_class,
&audio_template_factory);
gst_element_class_add_static_pad_template (element_class,
&sink_template_factory);
}
static void

View file

@ -196,10 +196,9 @@ gst_teletextdec_base_init (gpointer klass)
"Sebastian Pölsterl <sebp@k-d-w.org>, "
"Andoni Morales Alastruey <ylatuya@gmail.com>");
gst_element_class_add_pad_template (element_class,
gst_static_pad_template_get (&src_template));
gst_element_class_add_pad_template (element_class,
gst_static_pad_template_get (&sink_template));
gst_element_class_add_static_pad_template (element_class, &src_template);
gst_element_class_add_static_pad_template (element_class,
&sink_template);
}
/* initialize the gstteletext's class */

View file

@ -95,10 +95,8 @@ gst_timidity_base_init (gpointer gclass)
{
GstElementClass *element_class = GST_ELEMENT_CLASS (gclass);
gst_element_class_add_pad_template (element_class,
gst_static_pad_template_get (&src_factory));
gst_element_class_add_pad_template (element_class,
gst_static_pad_template_get (&sink_factory));
gst_element_class_add_static_pad_template (element_class, &src_factory);
gst_element_class_add_static_pad_template (element_class, &sink_factory);
gst_element_class_set_details_simple (element_class, "Timidity",
"Codec/Decoder/Audio",
"Midi Synthesizer Element", "Wouter Paesen <wouter@blue-gate.be>");

View file

@ -120,10 +120,8 @@ gst_wildmidi_base_init (gpointer gclass)
{
GstElementClass *element_class = GST_ELEMENT_CLASS (gclass);
gst_element_class_add_pad_template (element_class,
gst_static_pad_template_get (&src_factory));
gst_element_class_add_pad_template (element_class,
gst_static_pad_template_get (&sink_factory));
gst_element_class_add_static_pad_template (element_class, &src_factory);
gst_element_class_add_static_pad_template (element_class, &sink_factory);
gst_element_class_set_details_simple (element_class, "WildMidi",
"Codec/Decoder/Audio",
"Midi Synthesizer Element", "Wouter Paesen <wouter@blue-gate.be>");

View file

@ -160,10 +160,9 @@ gst_voamrwbenc_base_init (gpointer klass)
{
GstElementClass *element_class = GST_ELEMENT_CLASS (klass);
gst_element_class_add_pad_template (element_class,
gst_static_pad_template_get (&sink_template));
gst_element_class_add_pad_template (element_class,
gst_static_pad_template_get (&src_template));
gst_element_class_add_static_pad_template (element_class,
&sink_template);
gst_element_class_add_static_pad_template (element_class, &src_template);
gst_element_class_set_details_simple (element_class, "AMR-WB audio encoder",
"Codec/Encoder/Audio",

View file

@ -128,10 +128,10 @@ gst_vp8_dec_base_init (gpointer g_class)
{
GstElementClass *element_class = GST_ELEMENT_CLASS (g_class);
gst_element_class_add_pad_template (element_class,
gst_static_pad_template_get (&gst_vp8_dec_src_template));
gst_element_class_add_pad_template (element_class,
gst_static_pad_template_get (&gst_vp8_dec_sink_template));
gst_element_class_add_static_pad_template (element_class,
&gst_vp8_dec_src_template);
gst_element_class_add_static_pad_template (element_class,
&gst_vp8_dec_sink_template);
gst_element_class_set_details_simple (element_class,
"On2 VP8 Decoder",

View file

@ -269,10 +269,10 @@ gst_vp8_enc_base_init (gpointer g_class)
{
GstElementClass *element_class = GST_ELEMENT_CLASS (g_class);
gst_element_class_add_pad_template (element_class,
gst_static_pad_template_get (&gst_vp8_enc_src_template));
gst_element_class_add_pad_template (element_class,
gst_static_pad_template_get (&gst_vp8_enc_sink_template));
gst_element_class_add_static_pad_template (element_class,
&gst_vp8_enc_src_template);
gst_element_class_add_static_pad_template (element_class,
&gst_vp8_enc_sink_template);
gst_element_class_set_details_simple (element_class,
"On2 VP8 Encoder",

View file

@ -100,10 +100,9 @@ gst_xviddec_base_init (GstXvidDecClass * klass)
{
GstElementClass *element_class = GST_ELEMENT_CLASS (klass);
gst_element_class_add_pad_template (element_class,
gst_static_pad_template_get (&sink_template));
gst_element_class_add_pad_template (element_class,
gst_static_pad_template_get (&src_template));
gst_element_class_add_static_pad_template (element_class,
&sink_template);
gst_element_class_add_static_pad_template (element_class, &src_template);
gst_element_class_set_details_simple (element_class, "XviD video decoder",
"Codec/Decoder/Video",

View file

@ -218,10 +218,9 @@ gst_xvidenc_base_init (GstXvidEncClass * klass)
{
GstElementClass *element_class = GST_ELEMENT_CLASS (klass);
gst_element_class_add_pad_template (element_class,
gst_static_pad_template_get (&sink_template));
gst_element_class_add_pad_template (element_class,
gst_static_pad_template_get (&src_template));
gst_element_class_add_static_pad_template (element_class,
&sink_template);
gst_element_class_add_static_pad_template (element_class, &src_template);
gst_element_class_set_details_simple (element_class, "XviD video encoder",
"Codec/Encoder/Video",
"XviD encoder based on xvidcore",

View file

@ -145,10 +145,10 @@ gst_zbar_base_init (gpointer g_class)
"Detect bar codes in the video streams",
"Stefan Kost <ensonic@users.sf.net>");
gst_element_class_add_pad_template (element_class,
gst_static_pad_template_get (&gst_zbar_sink_template));
gst_element_class_add_pad_template (element_class,
gst_static_pad_template_get (&gst_zbar_src_template));
gst_element_class_add_static_pad_template (element_class,
&gst_zbar_sink_template);
gst_element_class_add_static_pad_template (element_class,
&gst_zbar_src_template);
}
static void

View file

@ -491,14 +491,14 @@ gst_base_camera_src_base_init (gpointer g_class)
"Base class for camerabin src bin", "Source/Video",
"Abstracts capture device for camerabin2", "Rob Clark <rob@ti.com>");
gst_element_class_add_pad_template (gstelement_class,
gst_static_pad_template_get (&vfsrc_template));
gst_element_class_add_static_pad_template (gstelement_class,
&vfsrc_template);
gst_element_class_add_pad_template (gstelement_class,
gst_static_pad_template_get (&imgsrc_template));
gst_element_class_add_static_pad_template (gstelement_class,
&imgsrc_template);
gst_element_class_add_pad_template (gstelement_class,
gst_static_pad_template_get (&vidsrc_template));
gst_element_class_add_static_pad_template (gstelement_class,
&vidsrc_template);
}
static void

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