Commit 7521b597 authored by Vincent Penquerc'h's avatar Vincent Penquerc'h

various: fix pad template ref leaks

https://bugzilla.gnome.org/show_bug.cgi?id=662664
parent 26d6add9
......@@ -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 */
......
......@@ -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, "
......
......@@ -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",
......
......@@ -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",
......
......@@ -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",
......
......@@ -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",
......
......@@ -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",
......
......@@ -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",
......
......@@ -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>");
......
......@@ -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>");
......
......@@ -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",
......
......@@ -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",
......
......@@ -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",
......
......@@ -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",
......
......@@ -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",
......
......@@ -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
......
......@@ -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",
......
......@@ -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",
......
......@@ -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",
......
......@@ -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
......
......@@ -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>, "
......
......@@ -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",
......
......@@ -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
......
......@@ -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",
......
......@@ -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",
......
......@@ -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",
......
......@@ -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",
......
......@@ -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",
......
......@@ -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",
......
......@@ -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
......
......@@ -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);
}
}
......
......@@ -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);
}
}
......
......@@ -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>");
......
......@@ -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>");
......
......@@ -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",
......
......@@ -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",
......
......@@ -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",
......
......@@ -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",
......
......@@ -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",
......
......@@ -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",
......
......@@ -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,