Commit 8cdfb136 authored by Vineeth TM's avatar Vineeth TM Committed by Sebastian Dröge

bad: use new gst_element_class_add_static_pad_template()

https://bugzilla.gnome.org/show_bug.cgi?id=763081
parent c2578292
......@@ -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 */
......
......@@ -170,12 +170,11 @@ gst_ass_render_class_init (GstAssRenderClass * klass)
gstelement_class->change_state =
GST_DEBUG_FUNCPTR (gst_ass_render_change_state);
gst_element_class_add_pad_template (gstelement_class,
gst_static_pad_template_get (&src_factory));
gst_element_class_add_pad_template (gstelement_class,
gst_static_pad_template_get (&video_sink_factory));
gst_element_class_add_pad_template (gstelement_class,
gst_static_pad_template_get (&text_sink_factory));
gst_element_class_add_static_pad_template (gstelement_class, &src_factory);
gst_element_class_add_static_pad_template (gstelement_class,
&video_sink_factory);
gst_element_class_add_static_pad_template (gstelement_class,
&text_sink_factory);
gst_element_class_set_static_metadata (gstelement_class, "ASS/SSA Render",
"Mixer/Video/Overlay/Subtitle",
......
......@@ -296,10 +296,8 @@ gst_bz2dec_class_init (GstBz2decClass * klass)
1, G_MAXUINT, DEFAULT_BUFFER_SIZE,
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
gst_element_class_add_pad_template (gstelement_class,
gst_static_pad_template_get (&sink_template));
gst_element_class_add_pad_template (gstelement_class,
gst_static_pad_template_get (&src_template));
gst_element_class_add_static_pad_template (gstelement_class, &sink_template);
gst_element_class_add_static_pad_template (gstelement_class, &src_template);
gst_element_class_set_static_metadata (gstelement_class, "BZ2 decoder",
"Codec/Decoder", "Decodes compressed streams",
"Lutz Mueller <lutz@users.sourceforge.net>");
......
......@@ -320,10 +320,8 @@ gst_bz2enc_class_init (GstBz2encClass * klass)
1, G_MAXUINT, DEFAULT_BUFFER_SIZE,
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
gst_element_class_add_pad_template (gstelement_class,
gst_static_pad_template_get (&sink_template));
gst_element_class_add_pad_template (gstelement_class,
gst_static_pad_template_get (&src_template));
gst_element_class_add_static_pad_template (gstelement_class, &sink_template);
gst_element_class_add_static_pad_template (gstelement_class, &src_template);
gst_element_class_set_static_metadata (gstelement_class, "BZ2 encoder",
"Codec/Encoder", "Compresses streams",
"Lutz Mueller <lutz@users.sourceforge.net>");
......
......@@ -235,8 +235,7 @@ gst_curl_base_sink_class_init (GstCurlBaseSinkClass * klass)
DSCP_MIN, DSCP_MAX, DEFAULT_QOS_DSCP,
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
gst_element_class_add_pad_template (element_class,
gst_static_pad_template_get (&sinktemplate));
gst_element_class_add_static_pad_template (element_class, &sinktemplate);
}
static void
......
......@@ -103,13 +103,12 @@ gst_daala_dec_class_init (GstDaalaDecClass * klass)
GstElementClass *element_class = GST_ELEMENT_CLASS (klass);
GstVideoDecoderClass *video_decoder_class = GST_VIDEO_DECODER_CLASS (klass);
gst_element_class_add_pad_template (element_class,
gst_static_pad_template_get (&daala_dec_src_factory));
gst_element_class_add_pad_template (element_class,
gst_static_pad_template_get (&daala_dec_sink_factory));
gst_element_class_set_static_metadata (element_class,
"Daala video decoder", "Codec/Decoder/Video",
"Decode raw Daala streams to raw YUV video",
gst_element_class_add_static_pad_template (element_class,
&daala_dec_src_factory);
gst_element_class_add_static_pad_template (element_class,
&daala_dec_sink_factory);
gst_element_class_set_static_metadata (element_class, "Daala video decoder",
"Codec/Decoder/Video", "Decode raw Daala streams to raw YUV video",
"Sebastian Dröge <slomo@circular-chaos.org>");
video_decoder_class->start = GST_DEBUG_FUNCPTR (daala_dec_start);
......
......@@ -212,13 +212,12 @@ gst_daala_enc_class_init (GstDaalaEncClass * klass)
1, G_MAXINT, DEFAULT_KEYFRAME_RATE,
(GParamFlags) G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
gst_element_class_add_pad_template (element_class,
gst_static_pad_template_get (&daala_enc_src_factory));
gst_element_class_add_pad_template (element_class,
gst_static_pad_template_get (&daala_enc_sink_factory));
gst_element_class_set_static_metadata (element_class,
"Daala video encoder", "Codec/Encoder/Video",
"Encode raw YUV video to a Daala stream",
gst_element_class_add_static_pad_template (element_class,
&daala_enc_src_factory);
gst_element_class_add_static_pad_template (element_class,
&daala_enc_sink_factory);
gst_element_class_set_static_metadata (element_class, "Daala video encoder",
"Codec/Encoder/Video", "Encode raw YUV video to a Daala stream",
"Sebastian Dröge <slomo@circular-chaos.org>");
gstvideo_encoder_class->start = GST_DEBUG_FUNCPTR (daala_enc_start);
......
......@@ -403,15 +403,14 @@ gst_dash_demux_class_init (GstDashDemuxClass * klass)
DEFAULT_PRESENTATION_DELAY,
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
gst_element_class_add_pad_template (gstelement_class,
gst_static_pad_template_get (&gst_dash_demux_audiosrc_template));
gst_element_class_add_pad_template (gstelement_class,
gst_static_pad_template_get (&gst_dash_demux_videosrc_template));
gst_element_class_add_pad_template (gstelement_class,
gst_static_pad_template_get (&gst_dash_demux_subtitlesrc_template));
gst_element_class_add_pad_template (gstelement_class,
gst_static_pad_template_get (&sinktemplate));
gst_element_class_add_static_pad_template (gstelement_class,
&gst_dash_demux_audiosrc_template);
gst_element_class_add_static_pad_template (gstelement_class,
&gst_dash_demux_videosrc_template);
gst_element_class_add_static_pad_template (gstelement_class,
&gst_dash_demux_subtitlesrc_template);
gst_element_class_add_static_pad_template (gstelement_class, &sinktemplate);
gst_element_class_set_static_metadata (gstelement_class,
"DASH Demuxer",
......
......@@ -2414,8 +2414,8 @@ gst_dfbvideosink_class_init (GstDfbVideoSinkClass * klass)
"DirectFB video sink", "Sink/Video", "A DirectFB based videosink",
"Julien Moutte <julien@moutte.net>");
gst_element_class_add_pad_template (gstelement_class,
gst_static_pad_template_get (&gst_dfbvideosink_sink_template_factory));
gst_element_class_add_static_pad_template (gstelement_class,
&gst_dfbvideosink_sink_template_factory);
gstelement_class->change_state = gst_dfbvideosink_change_state;
......
......@@ -173,10 +173,8 @@ gst_dtls_dec_class_init (GstDtlsDecClass * klass)
g_object_class_install_properties (gobject_class, NUM_PROPERTIES, properties);
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_static_metadata (element_class,
"DTLS Decoder",
......
......@@ -162,10 +162,8 @@ gst_dtls_enc_class_init (GstDtlsEncClass * klass)
g_object_class_install_properties (gobject_class, NUM_PROPERTIES, properties);
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_static_metadata (element_class,
"DTLS Encoder",
......
......@@ -133,14 +133,10 @@ gst_dtls_srtp_dec_class_init (GstDtlsSrtpDecClass * klass)
g_object_class_install_properties (gobject_class, NUM_PROPERTIES, properties);
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 (&rtp_src_template));
gst_element_class_add_pad_template (element_class,
gst_static_pad_template_get (&rtcp_src_template));
gst_element_class_add_pad_template (element_class,
gst_static_pad_template_get (&data_src_template));
gst_element_class_add_static_pad_template (element_class, &sink_template);
gst_element_class_add_static_pad_template (element_class, &rtp_src_template);
gst_element_class_add_static_pad_template (element_class, &rtcp_src_template);
gst_element_class_add_static_pad_template (element_class, &data_src_template);
gst_element_class_set_static_metadata (element_class,
"DTLS-SRTP Decoder",
......
......@@ -69,12 +69,9 @@ gst_dtls_srtp_demux_class_init (GstDtlsSrtpDemuxClass * klass)
element_class = (GstElementClass *) 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 (&rtp_src_template));
gst_element_class_add_pad_template (element_class,
gst_static_pad_template_get (&dtls_src_template));
gst_element_class_add_static_pad_template (element_class, &sink_template);
gst_element_class_add_static_pad_template (element_class, &rtp_src_template);
gst_element_class_add_static_pad_template (element_class, &dtls_src_template);
gst_element_class_set_static_metadata (element_class,
"DTLS SRTP Demultiplexer",
......
......@@ -139,14 +139,12 @@ gst_dtls_srtp_enc_class_init (GstDtlsSrtpEncClass * klass)
g_object_class_install_properties (gobject_class, NUM_PROPERTIES, properties);
gst_element_class_add_pad_template (element_class,
gst_static_pad_template_get (&rtp_sink_template));
gst_element_class_add_pad_template (element_class,
gst_static_pad_template_get (&rtcp_sink_template));
gst_element_class_add_pad_template (element_class,
gst_static_pad_template_get (&data_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, &rtp_sink_template);
gst_element_class_add_static_pad_template (element_class,
&rtcp_sink_template);
gst_element_class_add_static_pad_template (element_class,
&data_sink_template);
gst_element_class_add_static_pad_template (element_class, &src_template);
gst_element_class_set_static_metadata (element_class,
"DTLS-SRTP Encoder",
......
......@@ -156,10 +156,8 @@ gst_dtsdec_class_init (GstDtsDecClass * klass)
gobject_class->set_property = gst_dtsdec_set_property;
gobject_class->get_property = gst_dtsdec_get_property;
gst_element_class_add_pad_template (gstelement_class,
gst_static_pad_template_get (&sink_factory));
gst_element_class_add_pad_template (gstelement_class,
gst_static_pad_template_get (&src_factory));
gst_element_class_add_static_pad_template (gstelement_class, &sink_factory);
gst_element_class_add_static_pad_template (gstelement_class, &src_factory);
gst_element_class_set_static_metadata (gstelement_class, "DTS audio decoder",
"Codec/Decoder/Audio",
"Decodes DTS audio streams",
......
......@@ -191,8 +191,7 @@ gst_faac_class_init (GstFaacClass * klass)
GST_DEBUG_CATEGORY_INIT (faac_debug, "faac", 0, "AAC encoding");
gst_element_class_add_pad_template (gstelement_class,
gst_static_pad_template_get (&src_template));
gst_element_class_add_static_pad_template (gstelement_class, &src_template);
sink_caps = gst_faac_enc_generate_sink_caps ();
sink_templ = gst_pad_template_new ("sink",
......
......@@ -111,10 +111,8 @@ gst_faad_class_init (GstFaadClass * klass)
GstElementClass *element_class = GST_ELEMENT_CLASS (klass);
GstAudioDecoderClass *base_class = GST_AUDIO_DECODER_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_static_metadata (element_class, "AAC audio decoder",
"Codec/Decoder/Audio",
......
......@@ -126,8 +126,8 @@ gst_flite_test_src_class_init (GstFliteTestSrcClass * klass)
1, G_MAXINT, DEFAULT_SAMPLES_PER_BUFFER,
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
gst_element_class_add_pad_template (gstelement_class,
gst_static_pad_template_get (&gst_flite_test_src_src_template));
gst_element_class_add_static_pad_template (gstelement_class,
&gst_flite_test_src_src_template);
gst_element_class_set_static_metadata (gstelement_class,
"Flite speech test source", "Source/Audio",
......
......@@ -177,10 +177,8 @@ gst_fluid_dec_class_init (GstFluidDecClass * klass)
"Synth Polyphony", "The number of simultaneous voices", 1, 65535,
DEFAULT_SYNTH_POLYPHONY, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
gst_element_class_add_pad_template (gstelement_class,
gst_static_pad_template_get (&src_factory));
gst_element_class_add_pad_template (gstelement_class,
gst_static_pad_template_get (&sink_factory));
gst_element_class_add_static_pad_template (gstelement_class, &src_factory);
gst_element_class_add_static_pad_template (gstelement_class, &sink_factory);
gst_element_class_set_static_metadata (gstelement_class, "Fluidsynth",
"Codec/Decoder/Audio",
......
......@@ -227,8 +227,7 @@ gst_ca_opengl_layer_sink_class_init (GstCAOpenGLLayerSinkClass * klass)
"Sink/Video", "A video sink based on CAOpenGLLayer",
"Matthew Waters <matthew@centricular.com>");
gst_element_class_add_pad_template (element_class,
gst_static_pad_template_get (&gst_ca_opengl_layer_sink_template));
gst_element_class_add_static_pad_template (element_class, &gst_ca_opengl_layer_sink_template);
gobject_class->finalize = gst_ca_opengl_layer_sink_finalize;
......
......@@ -103,12 +103,10 @@ gst_gl_color_convert_element_class_init (GstGLColorConvertElementClass * klass)
bt_class->passthrough_on_same_caps = TRUE;
gst_element_class_add_pad_template (element_class,
gst_static_pad_template_get
(&gst_gl_color_convert_element_src_pad_template));
gst_element_class_add_pad_template (element_class,
gst_static_pad_template_get
(&gst_gl_color_convert_element_sink_pad_template));
gst_element_class_add_static_pad_template (element_class,
&gst_gl_color_convert_element_src_pad_template);
gst_element_class_add_static_pad_template (element_class,
&gst_gl_color_convert_element_sink_pad_template);
gst_element_class_set_metadata (element_class,
"OpenGL color converter", "Filter/Converter/Video",
......
......@@ -73,10 +73,10 @@ gst_gl_download_element_class_init (GstGLDownloadElementClass * klass)
bt_class->passthrough_on_same_caps = TRUE;
gst_element_class_add_pad_template (element_class,
gst_static_pad_template_get (&gst_gl_download_element_src_pad_template));
gst_element_class_add_pad_template (element_class,
gst_static_pad_template_get (&gst_gl_download_element_sink_pad_template));
gst_element_class_add_static_pad_template (element_class,
&gst_gl_download_element_src_pad_template);
gst_element_class_add_static_pad_template (element_class,
&gst_gl_download_element_sink_pad_template);
gst_element_class_set_metadata (element_class,
"OpenGL uploader", "Filter/Video",
......
......@@ -73,8 +73,7 @@ gst_gl_filter_bin_class_init (GstGLFilterBinClass * klass)
gobject_class->set_property = gst_gl_filter_bin_set_property;
gobject_class->get_property = gst_gl_filter_bin_get_property;
gst_element_class_add_pad_template (element_class,
gst_static_pad_template_get (&_src_pad_template));
gst_element_class_add_static_pad_template (element_class, &_src_pad_template);
upload_caps = gst_gl_upload_get_input_template_caps ();
gst_element_class_add_pad_template (element_class,
......
......@@ -570,8 +570,8 @@ gst_glimage_sink_class_init (GstGLImageSinkClass * klass)
G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_marshal_generic,
G_TYPE_BOOLEAN, 3, GST_GL_TYPE_CONTEXT, G_TYPE_UINT, G_TYPE_UINT);
gst_element_class_add_pad_template (element_class,
gst_static_pad_template_get (&gst_glimage_sink_template));
gst_element_class_add_static_pad_template (element_class,
&gst_glimage_sink_template);
gobject_class->finalize = gst_glimage_sink_finalize;
......
......@@ -380,10 +380,8 @@ gst_gl_mixer_class_init (GstGLMixerClass * klass)
gobject_class->get_property = gst_gl_mixer_get_property;
gobject_class->set_property = gst_gl_mixer_set_property;
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);
agg_class->sinkpads_type = GST_TYPE_GL_MIXER_PAD;
agg_class->sink_query = gst_gl_mixer_sink_query;
......
......@@ -169,8 +169,7 @@ gst_gl_mixer_bin_class_init (GstGLMixerBinClass * klass)
G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_marshal_generic,
GST_TYPE_ELEMENT, 0);
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);
upload_caps = gst_gl_upload_get_input_template_caps ();
gst_element_class_add_pad_template (element_class,
......
......@@ -102,8 +102,8 @@ gst_gl_src_bin_class_init (GstGLSrcBinClass * klass)
"Infrastructure to process GL textures",
"Matthew Waters <matthew@centricular.com>");
gst_element_class_add_pad_template (element_class,
gst_static_pad_template_get (&gst_gl_src_bin_template));
gst_element_class_add_static_pad_template (element_class,
&gst_gl_src_bin_template);
}
static void
......
......@@ -150,10 +150,8 @@ gst_gl_stereo_mix_class_init (GstGLStereoMixClass * klass)
GST_TYPE_GL_STEREO_DOWNMIX_MODE_TYPE, DEFAULT_DOWNMIX,
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);
agg_class->sinkpads_type = GST_TYPE_GL_STEREO_MIX_PAD;
agg_class->stop = gst_gl_stereo_mix_stop;
......
......@@ -139,12 +139,10 @@ gst_gl_stereosplit_class_init (GstGLStereoSplitClass * klass)
element_class->change_state = stereosplit_change_state;
element_class->set_context = stereosplit_set_context;
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_left_template));
gst_element_class_add_pad_template (element_class,
gst_static_pad_template_get (&src_right_template));
gst_element_class_add_static_pad_template (element_class, &sink_template);
gst_element_class_add_static_pad_template (element_class, &src_left_template);
gst_element_class_add_static_pad_template (element_class,
&src_right_template);
}
static void
......
......@@ -178,8 +178,7 @@ gst_gl_test_src_class_init (GstGLTestSrcClass * klass)
"Source/Video", "Creates a test video stream",
"David A. Schleef <ds@schleef.org>");
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);
element_class->set_context = gst_gl_test_src_set_context;
element_class->change_state = gst_gl_test_src_change_state;
......
......@@ -80,8 +80,8 @@ gst_gl_upload_element_class_init (GstGLUploadElementClass * klass)
bt_class->passthrough_on_same_caps = TRUE;
gst_element_class_add_pad_template (element_class,
gst_static_pad_template_get (&gst_gl_upload_element_src_pad_template));
gst_element_class_add_static_pad_template (element_class,
&gst_gl_upload_element_src_pad_template);
upload_caps = gst_gl_upload_get_input_template_caps ();
gst_element_class_add_pad_template (element_class,
......
......@@ -133,10 +133,8 @@ gst_gl_video_flip_class_init (GstGLVideoFlipClass * klass)
GST_PARAM_CONTROLLABLE | G_PARAM_READWRITE | G_PARAM_CONSTRUCT |
G_PARAM_STATIC_STRINGS));
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_metadata (element_class, "OpenGL video flip filter",
"Filter/Effect/Video", "Flip video on the GPU",
......
......@@ -92,10 +92,8 @@ gst_gme_dec_class_init (GstGmeDecClass * klass)
"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);
element_class->change_state = GST_DEBUG_FUNCPTR (gst_gme_dec_change_state);
}
......
......@@ -84,13 +84,13 @@ gst_gsmdec_class_init (GstGSMDecClass * klass)
element_class = (GstElementClass *) klass;
base_class = (GstAudioDecoderClass *) klass;
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_static_metadata (element_class, "GSM audio decoder",
"Codec/Decoder/Audio",
"Decodes GSM encoded audio", "Philippe Khalaf <burger@speedy.org>");
"Codec/Decoder/Audio", "Decodes GSM encoded audio",
"Philippe Khalaf <burger@speedy.org>");
base_class->start = GST_DEBUG_FUNCPTR (gst_gsmdec_start);
base_class->stop = GST_DEBUG_FUNCPTR (gst_gsmdec_stop);
......
......@@ -78,13 +78,13 @@ gst_gsmenc_class_init (GstGSMEncClass * klass)
element_class = (GstElementClass *) klass;
base_class = (GstAudioEncoderClass *) klass;
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_static_metadata (element_class, "GSM audio encoder",
"Codec/Encoder/Audio",
"Encodes GSM audio", "Philippe Khalaf <burger@speedy.org>");
"Codec/Encoder/Audio", "Encodes GSM audio",
"Philippe Khalaf <burger@speedy.org>");
base_class->start = GST_DEBUG_FUNCPTR (gst_gsmenc_start);
base_class->stop = GST_DEBUG_FUNCPTR (gst_gsmenc_stop);
......
......@@ -80,8 +80,8 @@ gst_gtk_gl_sink_class_init (GstGtkGLSinkClass * klass)
"Sink/Video", "A video sink that renders to a GtkWidget",
"Matthew Waters <matthew@centricular.com>");
gst_element_class_add_pad_template (gstelement_class,
gst_static_pad_template_get (&gst_gtk_gl_sink_template));
gst_element_class_add_static_pad_template (gstelement_class,
&gst_gtk_gl_sink_template);
}
static void
......
......@@ -62,8 +62,8 @@ gst_gtk_sink_class_init (GstGtkSinkClass * klass)
"Sink/Video", "A video sink that renders to a GtkWidget",
"Matthew Waters <matthew@centricular.com>");
gst_element_class_add_pad_template (gstelement_class,
gst_static_pad_template_get (&gst_gtk_sink_template));
gst_element_class_add_static_pad_template (gstelement_class,
&gst_gtk_sink_template);
}
static void
......
......@@ -134,11 +134,8 @@ gst_hls_demux_class_init (GstHLSDemuxClass * klass)
element_class->change_state = GST_DEBUG_FUNCPTR (gst_hls_demux_change_state);
gst_element_class_add_pad_template (element_class,
gst_static_pad_template_get (&srctemplate));
gst_element_class_add_pad_template (element_class,
gst_static_pad_template_get (&sinktemplate));
gst_element_class_add_static_pad_template (element_class, &srctemplate);
gst_element_class_add_static_pad_template (element_class, &sinktemplate);
gst_element_class_set_static_metadata (element_class,
"HLS Demuxer",
......
......@@ -120,8 +120,7 @@ gst_hls_sink_class_init (GstHlsSinkClass * klass)
element_class = GST_ELEMENT_CLASS (klass);
bin_class = GST_BIN_CLASS (klass);
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);
gst_element_class_set_static_metadata (element_class,
"HTTP Live Streaming sink", "Sink", "HTTP Live Streaming sink",
......
......@@ -162,10 +162,8 @@ gst_kate_dec_class_init (GstKateDecClass * klass)
gstelement_class->change_state =
GST_DEBUG_FUNCPTR (gst_kate_dec_change_state);
gst_element_class_add_pad_template (gstelement_class,
gst_static_pad_template_get (&src_factory));
gst_element_class_add_pad_template (gstelement_class,
gst_static_pad_template_get (&sink_factory));
gst_element_class_add_static_pad_template (gstelement_class, &src_factory);
gst_element_class_add_static_pad_template (gstelement_class, &sink_factory);
gst_element_class_set_static_metadata (gstelement_class,
"Kate stream text decoder", "Codec/Decoder/Subtitle",
......
......@@ -214,10 +214,8 @@ gst_kate_enc_class_init (GstKateEncClass * klass)
gstelement_class->change_state =
GST_DEBUG_FUNCPTR (gst_kate_enc_change_state);
gst_element_class_add_pad_template (gstelement_class,
gst_static_pad_template_get (&src_factory));
gst_element_class_add_pad_template (gstelement_class,