summaryrefslogtreecommitdiff
path: root/gst
diff options
context:
space:
mode:
authorVineeth TM <vineeth.tm@samsung.com>2016-03-04 10:30:12 +0900
committerSebastian Dröge <sebastian@centricular.com>2016-03-24 14:32:20 +0200
commit1071309870735ce1f167a2e53c224636812e6eaf (patch)
tree166ac197d98639553c4d9f437dfe53676f9340b1 /gst
parent2b8b5f22465850b306b93c8317ac0f4ff10ca432 (diff)
good: use new gst_element_class_add_static_pad_template()
https://bugzilla.gnome.org/show_bug.cgi?id=763076
Diffstat (limited to 'gst')
-rw-r--r--gst/alpha/gstalpha.c8
-rw-r--r--gst/alpha/gstalphacolor.c6
-rw-r--r--gst/apetag/gstapedemux.c3
-rw-r--r--gst/audiofx/audiopanorama.c6
-rw-r--r--gst/audiofx/gstscaletempo.c6
-rw-r--r--gst/audioparsers/gstaacparse.c6
-rw-r--r--gst/audioparsers/gstac3parse.c6
-rw-r--r--gst/audioparsers/gstamrparse.c6
-rw-r--r--gst/audioparsers/gstdcaparse.c6
-rw-r--r--gst/audioparsers/gstflacparse.c6
-rw-r--r--gst/audioparsers/gstmpegaudioparse.c6
-rw-r--r--gst/audioparsers/gstsbcparse.c6
-rw-r--r--gst/audioparsers/gstwavpackparse.c6
-rw-r--r--gst/auparse/gstauparse.c6
-rw-r--r--gst/autodetect/gstautoaudiosink.c3
-rw-r--r--gst/autodetect/gstautoaudiosrc.c3
-rw-r--r--gst/autodetect/gstautovideosink.c3
-rw-r--r--gst/autodetect/gstautovideosrc.c3
-rw-r--r--gst/avi/gstavidemux.c3
-rw-r--r--gst/avi/gstavimux.c11
-rw-r--r--gst/avi/gstavisubtitle.c6
-rw-r--r--gst/cutter/gstcutter.c11
-rw-r--r--gst/debugutils/breakmydata.c8
-rw-r--r--gst/debugutils/cpureport.c8
-rw-r--r--gst/debugutils/gstcapsdebug.c8
-rw-r--r--gst/debugutils/gstcapssetter.c8
-rw-r--r--gst/debugutils/gstnavigationtest.c8
-rw-r--r--gst/debugutils/gstnavseek.c8
-rw-r--r--gst/debugutils/gstpushfilesrc.c3
-rw-r--r--gst/debugutils/gsttaginject.c6
-rw-r--r--gst/debugutils/progressreport.c8
-rw-r--r--gst/debugutils/rndbuffersize.c6
-rw-r--r--gst/debugutils/testplugin.c3
-rw-r--r--gst/deinterlace/gstdeinterlace.c6
-rw-r--r--gst/dtmf/gstdtmfsrc.c4
-rw-r--r--gst/dtmf/gstrtpdtmfdepay.c8
-rw-r--r--gst/dtmf/gstrtpdtmfsrc.c4
-rw-r--r--gst/effectv/gstaging.c8
-rw-r--r--gst/effectv/gstdice.c8
-rw-r--r--gst/effectv/gstedge.c8
-rw-r--r--gst/effectv/gstop.c8
-rw-r--r--gst/effectv/gstquark.c8
-rw-r--r--gst/effectv/gstradioac.c8
-rw-r--r--gst/effectv/gstrev.c8
-rw-r--r--gst/effectv/gstripple.c8
-rw-r--r--gst/effectv/gstshagadelic.c8
-rw-r--r--gst/effectv/gststreak.c8
-rw-r--r--gst/effectv/gstvertigo.c8
-rw-r--r--gst/effectv/gstwarp.c8
-rw-r--r--gst/flv/gstflvdemux.c15
-rw-r--r--gst/flv/gstflvmux.c11
-rw-r--r--gst/goom/gstgoom.c6
-rw-r--r--gst/goom2k1/gstgoom.c6
-rw-r--r--gst/icydemux/gsticydemux.c6
-rw-r--r--gst/id3demux/gstid3demux.c3
-rw-r--r--gst/imagefreeze/gstimagefreeze.c8
-rw-r--r--gst/interleave/deinterleave.c6
-rw-r--r--gst/interleave/interleave.c6
-rw-r--r--gst/isomp4/gstrtpxqtdepay.c8
-rw-r--r--gst/isomp4/qtdemux.c16
-rw-r--r--gst/law/alaw-decode.c8
-rw-r--r--gst/law/alaw-encode.c8
-rw-r--r--gst/law/mulaw-decode.c8
-rw-r--r--gst/law/mulaw-encode.c8
-rw-r--r--gst/level/gstlevel.c8
-rw-r--r--gst/matroska/matroska-demux.c15
-rw-r--r--gst/matroska/matroska-mux.c15
-rw-r--r--gst/matroska/matroska-parse.c6
-rw-r--r--gst/matroska/webm-mux.c11
-rw-r--r--gst/monoscope/gstmonoscope.c6
-rw-r--r--gst/multifile/gstmultifilesink.c3
-rw-r--r--gst/multifile/gstmultifilesrc.c7
-rw-r--r--gst/multifile/gstsplitfilesrc.c4
-rw-r--r--gst/multifile/gstsplitmuxsink.c12
-rw-r--r--gst/multifile/gstsplitmuxsrc.c12
-rw-r--r--gst/multipart/multipartdemux.c11
-rw-r--r--gst/multipart/multipartmux.c6
-rw-r--r--gst/replaygain/gstrganalysis.c6
-rw-r--r--gst/replaygain/gstrglimiter.c6
-rw-r--r--gst/replaygain/gstrgvolume.c6
-rw-r--r--gst/rtp/gstasteriskh263.c8
-rw-r--r--gst/rtp/gstrtpL16depay.c8
-rw-r--r--gst/rtp/gstrtpL16pay.c8
-rw-r--r--gst/rtp/gstrtpL24depay.c8
-rw-r--r--gst/rtp/gstrtpL24pay.c8
-rw-r--r--gst/rtp/gstrtpac3depay.c8
-rw-r--r--gst/rtp/gstrtpac3pay.c8
-rw-r--r--gst/rtp/gstrtpamrdepay.c8
-rw-r--r--gst/rtp/gstrtpamrpay.c8
-rw-r--r--gst/rtp/gstrtpbvdepay.c8
-rw-r--r--gst/rtp/gstrtpbvpay.c8
-rw-r--r--gst/rtp/gstrtpceltdepay.c8
-rw-r--r--gst/rtp/gstrtpceltpay.c8
-rw-r--r--gst/rtp/gstrtpdvdepay.c6
-rw-r--r--gst/rtp/gstrtpdvpay.c8
-rw-r--r--gst/rtp/gstrtpg722depay.c8
-rw-r--r--gst/rtp/gstrtpg722pay.c8
-rw-r--r--gst/rtp/gstrtpg723depay.c8
-rw-r--r--gst/rtp/gstrtpg723pay.c8
-rw-r--r--gst/rtp/gstrtpg726depay.c8
-rw-r--r--gst/rtp/gstrtpg726pay.c8
-rw-r--r--gst/rtp/gstrtpg729depay.c8
-rw-r--r--gst/rtp/gstrtpg729pay.c8
-rw-r--r--gst/rtp/gstrtpgsmdepay.c8
-rw-r--r--gst/rtp/gstrtpgsmpay.c8
-rw-r--r--gst/rtp/gstrtpgstdepay.c8
-rw-r--r--gst/rtp/gstrtpgstpay.c8
-rw-r--r--gst/rtp/gstrtph261depay.c8
-rw-r--r--gst/rtp/gstrtph261pay.c8
-rw-r--r--gst/rtp/gstrtph263depay.c8
-rw-r--r--gst/rtp/gstrtph263pay.c8
-rw-r--r--gst/rtp/gstrtph263pdepay.c8
-rw-r--r--gst/rtp/gstrtph263ppay.c8
-rw-r--r--gst/rtp/gstrtph264depay.c8
-rw-r--r--gst/rtp/gstrtph264pay.c8
-rw-r--r--gst/rtp/gstrtph265depay.c8
-rw-r--r--gst/rtp/gstrtph265pay.c8
-rw-r--r--gst/rtp/gstrtpilbcdepay.c8
-rw-r--r--gst/rtp/gstrtpilbcpay.c8
-rw-r--r--gst/rtp/gstrtpj2kdepay.c8
-rw-r--r--gst/rtp/gstrtpj2kpay.c8
-rw-r--r--gst/rtp/gstrtpjpegdepay.c8
-rw-r--r--gst/rtp/gstrtpjpegpay.c8
-rw-r--r--gst/rtp/gstrtpklvdepay.c6
-rw-r--r--gst/rtp/gstrtpklvpay.c6
-rw-r--r--gst/rtp/gstrtpmp1sdepay.c8
-rw-r--r--gst/rtp/gstrtpmp2tdepay.c8
-rw-r--r--gst/rtp/gstrtpmp2tpay.c8
-rw-r--r--gst/rtp/gstrtpmp4adepay.c8
-rw-r--r--gst/rtp/gstrtpmp4apay.c8
-rw-r--r--gst/rtp/gstrtpmp4gdepay.c8
-rw-r--r--gst/rtp/gstrtpmp4gpay.c8
-rw-r--r--gst/rtp/gstrtpmp4vdepay.c8
-rw-r--r--gst/rtp/gstrtpmp4vpay.c8
-rw-r--r--gst/rtp/gstrtpmpadepay.c8
-rw-r--r--gst/rtp/gstrtpmpapay.c8
-rw-r--r--gst/rtp/gstrtpmparobustdepay.c8
-rw-r--r--gst/rtp/gstrtpmpvdepay.c8
-rw-r--r--gst/rtp/gstrtpmpvpay.c8
-rw-r--r--gst/rtp/gstrtpopusdepay.c8
-rw-r--r--gst/rtp/gstrtpopuspay.c8
-rw-r--r--gst/rtp/gstrtppcmadepay.c8
-rw-r--r--gst/rtp/gstrtppcmapay.c8
-rw-r--r--gst/rtp/gstrtppcmudepay.c8
-rw-r--r--gst/rtp/gstrtppcmupay.c8
-rw-r--r--gst/rtp/gstrtpqcelpdepay.c8
-rw-r--r--gst/rtp/gstrtpqdmdepay.c8
-rw-r--r--gst/rtp/gstrtpsbcdepay.c8
-rw-r--r--gst/rtp/gstrtpsbcpay.c8
-rw-r--r--gst/rtp/gstrtpsirendepay.c8
-rw-r--r--gst/rtp/gstrtpsirenpay.c8
-rw-r--r--gst/rtp/gstrtpspeexdepay.c8
-rw-r--r--gst/rtp/gstrtpspeexpay.c8
-rw-r--r--gst/rtp/gstrtpstreamdepay.c6
-rw-r--r--gst/rtp/gstrtpstreampay.c6
-rw-r--r--gst/rtp/gstrtpsv3vdepay.c8
-rw-r--r--gst/rtp/gstrtptheoradepay.c8
-rw-r--r--gst/rtp/gstrtptheorapay.c8
-rw-r--r--gst/rtp/gstrtpvorbisdepay.c8
-rw-r--r--gst/rtp/gstrtpvorbispay.c8
-rw-r--r--gst/rtp/gstrtpvp8depay.c8
-rw-r--r--gst/rtp/gstrtpvp8pay.c8
-rw-r--r--gst/rtp/gstrtpvp9depay.c8
-rw-r--r--gst/rtp/gstrtpvp9pay.c8
-rw-r--r--gst/rtp/gstrtpvrawdepay.c8
-rw-r--r--gst/rtp/gstrtpvrawpay.c8
-rw-r--r--gst/rtpmanager/gstrtpbin.c24
-rw-r--r--gst/rtpmanager/gstrtpdtmfmux.c4
-rw-r--r--gst/rtpmanager/gstrtpjitterbuffer.c12
-rw-r--r--gst/rtpmanager/gstrtpmux.c6
-rw-r--r--gst/rtpmanager/gstrtpptdemux.c8
-rw-r--r--gst/rtpmanager/gstrtprtxqueue.c6
-rw-r--r--gst/rtpmanager/gstrtprtxreceive.c6
-rw-r--r--gst/rtpmanager/gstrtprtxsend.c6
-rw-r--r--gst/rtpmanager/gstrtpsession.c28
-rw-r--r--gst/rtpmanager/gstrtpssrcdemux.c16
-rw-r--r--gst/rtsp/gstrtpdec.c16
-rw-r--r--gst/rtsp/gstrtspsrc.c3
-rw-r--r--gst/shapewipe/gstshapewipe.c12
-rw-r--r--gst/smpte/gstsmpte.c12
-rw-r--r--gst/smpte/gstsmptealpha.c8
-rw-r--r--gst/udp/gstdynudpsink.c3
-rw-r--r--gst/udp/gstmultiudpsink.c3
-rw-r--r--gst/udp/gstudpsrc.c3
-rw-r--r--gst/videobox/gstvideobox.c8
-rw-r--r--gst/videocrop/gstaspectratiocrop.c6
-rw-r--r--gst/videocrop/gstvideocrop.c6
-rw-r--r--gst/videofilter/gstgamma.c8
-rw-r--r--gst/videofilter/gstvideobalance.c8
-rw-r--r--gst/videofilter/gstvideoflip.c8
-rw-r--r--gst/videofilter/gstvideomedian.c11
-rw-r--r--gst/videomixer/videomixer2.c6
-rw-r--r--gst/wavenc/gstwavenc.c6
-rw-r--r--gst/wavparse/gstwavparse.c4
-rw-r--r--gst/y4m/gsty4mencode.c8
195 files changed, 702 insertions, 806 deletions
diff --git a/gst/alpha/gstalpha.c b/gst/alpha/gstalpha.c
index 839b8db23..82ad98167 100644
--- a/gst/alpha/gstalpha.c
+++ b/gst/alpha/gstalpha.c
@@ -273,10 +273,10 @@ gst_alpha_class_init (GstAlphaClass * klass)
"Edward Hervey <edward.hervey@collabora.co.uk>\n"
"Jan Schmidt <thaytan@noraisin.net>");
- gst_element_class_add_pad_template (gstelement_class,
- gst_static_pad_template_get (&gst_alpha_sink_template));
- gst_element_class_add_pad_template (gstelement_class,
- gst_static_pad_template_get (&gst_alpha_src_template));
+ gst_element_class_add_static_pad_template (gstelement_class,
+ &gst_alpha_sink_template);
+ gst_element_class_add_static_pad_template (gstelement_class,
+ &gst_alpha_src_template);
btrans_class->before_transform =
GST_DEBUG_FUNCPTR (gst_alpha_before_transform);
diff --git a/gst/alpha/gstalphacolor.c b/gst/alpha/gstalphacolor.c
index 99676776e..e082e74a8 100644
--- a/gst/alpha/gstalphacolor.c
+++ b/gst/alpha/gstalphacolor.c
@@ -85,10 +85,8 @@ gst_alpha_color_class_init (GstAlphaColorClass * klass)
"ARGB from/to AYUV colorspace conversion preserving the alpha channel",
"Wim Taymans <wim.taymans@gmail.com>");
- 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);
gstbasetransform_class->transform_caps =
GST_DEBUG_FUNCPTR (gst_alpha_color_transform_caps);
diff --git a/gst/apetag/gstapedemux.c b/gst/apetag/gstapedemux.c
index be0b0e5bb..b3e62894f 100644
--- a/gst/apetag/gstapedemux.c
+++ b/gst/apetag/gstapedemux.c
@@ -91,8 +91,7 @@ gst_ape_demux_class_init (GstApeDemuxClass * klass)
"Read and output APE tags while demuxing the contents",
"Tim-Philipp Müller <tim centricular net>");
- 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);
tagdemux_class->identify_tag = GST_DEBUG_FUNCPTR (gst_ape_demux_identify_tag);
tagdemux_class->parse_tag = GST_DEBUG_FUNCPTR (gst_ape_demux_parse_tag);
diff --git a/gst/audiofx/audiopanorama.c b/gst/audiofx/audiopanorama.c
index 330e04943..b901464ae 100644
--- a/gst/audiofx/audiopanorama.c
+++ b/gst/audiofx/audiopanorama.c
@@ -199,10 +199,8 @@ gst_audio_panorama_class_init (GstAudioPanoramaClass * klass)
"Positions audio streams in the stereo panorama",
"Stefan Kost <ensonic@users.sf.net>");
- gst_element_class_add_pad_template (gstelement_class,
- gst_static_pad_template_get (&src_template));
- gst_element_class_add_pad_template (gstelement_class,
- gst_static_pad_template_get (&sink_template));
+ gst_element_class_add_static_pad_template (gstelement_class, &src_template);
+ gst_element_class_add_static_pad_template (gstelement_class, &sink_template);
GST_BASE_TRANSFORM_CLASS (klass)->get_unit_size =
GST_DEBUG_FUNCPTR (gst_audio_panorama_get_unit_size);
diff --git a/gst/audiofx/gstscaletempo.c b/gst/audiofx/gstscaletempo.c
index f859feeef..217ce4eb5 100644
--- a/gst/audiofx/gstscaletempo.c
+++ b/gst/audiofx/gstscaletempo.c
@@ -859,10 +859,8 @@ gst_scaletempo_class_init (GstScaletempoClass * klass)
"Length in milliseconds to search for best overlap position", 0, 500,
14, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
- gst_element_class_add_pad_template (gstelement_class,
- gst_static_pad_template_get (&src_template));
- gst_element_class_add_pad_template (gstelement_class,
- gst_static_pad_template_get (&sink_template));
+ gst_element_class_add_static_pad_template (gstelement_class, &src_template);
+ gst_element_class_add_static_pad_template (gstelement_class, &sink_template);
gst_element_class_set_static_metadata (gstelement_class, "Scaletempo",
"Filter/Effect/Rate",
"Sync audio tempo with playback rate",
diff --git a/gst/audioparsers/gstaacparse.c b/gst/audioparsers/gstaacparse.c
index 982d2428e..a23a0a9a7 100644
--- a/gst/audioparsers/gstaacparse.c
+++ b/gst/audioparsers/gstaacparse.c
@@ -114,10 +114,8 @@ gst_aac_parse_class_init (GstAacParseClass * klass)
GST_DEBUG_CATEGORY_INIT (aacparse_debug, "aacparse", 0,
"AAC audio stream parser");
- 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_static_metadata (element_class,
"AAC audio stream parser", "Codec/Parser/Audio",
diff --git a/gst/audioparsers/gstac3parse.c b/gst/audioparsers/gstac3parse.c
index 875f9cb1b..ae750389c 100644
--- a/gst/audioparsers/gstac3parse.c
+++ b/gst/audioparsers/gstac3parse.c
@@ -186,10 +186,8 @@ gst_ac3_parse_class_init (GstAc3ParseClass * klass)
object_class->finalize = gst_ac3_parse_finalize;
- 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_static_metadata (element_class,
"AC3 audio stream parser", "Codec/Parser/Converter/Audio",
diff --git a/gst/audioparsers/gstamrparse.c b/gst/audioparsers/gstamrparse.c
index 557afc9bf..5bc84d4d5 100644
--- a/gst/audioparsers/gstamrparse.c
+++ b/gst/audioparsers/gstamrparse.c
@@ -100,10 +100,8 @@ gst_amr_parse_class_init (GstAmrParseClass * klass)
GST_DEBUG_CATEGORY_INIT (amrparse_debug, "amrparse", 0,
"AMR-NB audio stream parser");
- 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_static_metadata (element_class,
"AMR audio stream parser", "Codec/Parser/Audio",
diff --git a/gst/audioparsers/gstdcaparse.c b/gst/audioparsers/gstdcaparse.c
index 380932381..dfa562161 100644
--- a/gst/audioparsers/gstdcaparse.c
+++ b/gst/audioparsers/gstdcaparse.c
@@ -106,10 +106,8 @@ gst_dca_parse_class_init (GstDcaParseClass * klass)
parse_class->get_sink_caps = GST_DEBUG_FUNCPTR (gst_dca_parse_get_sink_caps);
parse_class->set_sink_caps = GST_DEBUG_FUNCPTR (gst_dca_parse_set_sink_caps);
- 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_static_metadata (element_class,
"DTS Coherent Acoustics audio stream parser", "Codec/Parser/Audio",
diff --git a/gst/audioparsers/gstflacparse.c b/gst/audioparsers/gstflacparse.c
index 34e1e5e66..4a36137f7 100644
--- a/gst/audioparsers/gstflacparse.c
+++ b/gst/audioparsers/gstflacparse.c
@@ -247,10 +247,8 @@ gst_flac_parse_class_init (GstFlacParseClass * klass)
baseparse_class->get_sink_caps =
GST_DEBUG_FUNCPTR (gst_flac_parse_get_sink_caps);
- 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_static_metadata (element_class, "FLAC audio parser",
"Codec/Parser/Audio",
diff --git a/gst/audioparsers/gstmpegaudioparse.c b/gst/audioparsers/gstmpegaudioparse.c
index 1a5313af8..14329731e 100644
--- a/gst/audioparsers/gstmpegaudioparse.c
+++ b/gst/audioparsers/gstmpegaudioparse.c
@@ -177,10 +177,8 @@ gst_mpeg_audio_parse_class_init (GstMpegAudioParseClass * klass)
g_type_class_ref (GST_TYPE_MPEG_AUDIO_CHANNEL_MODE);
- 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_static_metadata (element_class, "MPEG1 Audio Parser",
"Codec/Parser/Audio",
diff --git a/gst/audioparsers/gstsbcparse.c b/gst/audioparsers/gstsbcparse.c
index f7374f509..12c39d95e 100644
--- a/gst/audioparsers/gstsbcparse.c
+++ b/gst/audioparsers/gstsbcparse.c
@@ -98,10 +98,8 @@ gst_sbc_parse_class_init (GstSbcParseClass * klass)
baseparse_class->get_sink_caps =
GST_DEBUG_FUNCPTR (gst_sbc_parse_get_sink_caps);
- 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_static_metadata (element_class, "SBC audio parser",
"Codec/Parser/Audio", "Parses an SBC bluetooth audio stream",
diff --git a/gst/audioparsers/gstwavpackparse.c b/gst/audioparsers/gstwavpackparse.c
index ce85c5b60..3e1d19c94 100644
--- a/gst/audioparsers/gstwavpackparse.c
+++ b/gst/audioparsers/gstwavpackparse.c
@@ -98,10 +98,8 @@ gst_wavpack_parse_class_init (GstWavpackParseClass * klass)
parse_class->pre_push_frame =
GST_DEBUG_FUNCPTR (gst_wavpack_parse_pre_push_frame);
- 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_static_metadata (element_class,
"Wavpack audio stream parser", "Codec/Parser/Audio",
diff --git a/gst/auparse/gstauparse.c b/gst/auparse/gstauparse.c
index 6e6d929d1..db5b68456 100644
--- a/gst/auparse/gstauparse.c
+++ b/gst/auparse/gstauparse.c
@@ -118,10 +118,8 @@ gst_au_parse_class_init (GstAuParseClass * klass)
gstelement_class->change_state =
GST_DEBUG_FUNCPTR (gst_au_parse_change_state);
- 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,
"AU audio demuxer",
"Codec/Demuxer/Audio",
diff --git a/gst/autodetect/gstautoaudiosink.c b/gst/autodetect/gstautoaudiosink.c
index 1dfc4cebd..1edf6d879 100644
--- a/gst/autodetect/gstautoaudiosink.c
+++ b/gst/autodetect/gstautoaudiosink.c
@@ -81,8 +81,7 @@ gst_auto_audio_sink_class_init (GstAutoAudioSinkClass * klass)
"Timestamp offset in nanoseconds", G_MININT64, G_MAXINT64,
DEFAULT_TS_OFFSET, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
- gst_element_class_add_pad_template (eklass,
- gst_static_pad_template_get (&sink_template));
+ gst_element_class_add_static_pad_template (eklass, &sink_template);
gst_element_class_set_static_metadata (eklass, "Auto audio sink",
"Sink/Audio",
"Wrapper audio sink for automatically detected audio sink",
diff --git a/gst/autodetect/gstautoaudiosrc.c b/gst/autodetect/gstautoaudiosrc.c
index 2859386cf..8adda00d5 100644
--- a/gst/autodetect/gstautoaudiosrc.c
+++ b/gst/autodetect/gstautoaudiosrc.c
@@ -75,8 +75,7 @@ gst_auto_audio_src_class_init (GstAutoAudioSrcClass * klass)
GstAutoDetectClass *autoclass = GST_AUTO_DETECT_CLASS (klass);
GstElementClass *eklass = GST_ELEMENT_CLASS (klass);
- gst_element_class_add_pad_template (eklass,
- gst_static_pad_template_get (&src_template));
+ gst_element_class_add_static_pad_template (eklass, &src_template);
gst_element_class_set_static_metadata (eklass, "Auto audio source",
"Source/Audio",
"Wrapper audio source for automatically detected audio source",
diff --git a/gst/autodetect/gstautovideosink.c b/gst/autodetect/gstautovideosink.c
index 6eaee6600..e4fd91ebd 100644
--- a/gst/autodetect/gstautovideosink.c
+++ b/gst/autodetect/gstautovideosink.c
@@ -81,8 +81,7 @@ gst_auto_video_sink_class_init (GstAutoVideoSinkClass * klass)
"Timestamp offset in nanoseconds", G_MININT64, G_MAXINT64,
DEFAULT_TS_OFFSET, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
- gst_element_class_add_pad_template (eklass,
- gst_static_pad_template_get (&sink_template));
+ gst_element_class_add_static_pad_template (eklass, &sink_template);
gst_element_class_set_static_metadata (eklass, "Auto video sink",
"Sink/Video",
"Wrapper video sink for automatically detected video sink",
diff --git a/gst/autodetect/gstautovideosrc.c b/gst/autodetect/gstautovideosrc.c
index 854c641d8..2f4343144 100644
--- a/gst/autodetect/gstautovideosrc.c
+++ b/gst/autodetect/gstautovideosrc.c
@@ -74,8 +74,7 @@ gst_auto_video_src_class_init (GstAutoVideoSrcClass * klass)
GstAutoDetectClass *autoclass = GST_AUTO_DETECT_CLASS (klass);
GstElementClass *eklass = GST_ELEMENT_CLASS (klass);
- gst_element_class_add_pad_template (eklass,
- gst_static_pad_template_get (&src_template));
+ gst_element_class_add_static_pad_template (eklass, &src_template);
gst_element_class_set_static_metadata (eklass, "Auto video source",
"Source/Video",
"Wrapper video source for automatically detected video source",
diff --git a/gst/avi/gstavidemux.c b/gst/avi/gstavidemux.c
index d07a30723..92cb2b428 100644
--- a/gst/avi/gstavidemux.c
+++ b/gst/avi/gstavidemux.c
@@ -170,8 +170,7 @@ gst_avi_demux_class_init (GstAviDemuxClass * klass)
gst_element_class_add_pad_template (gstelement_class, videosrctempl);
gst_element_class_add_pad_template (gstelement_class, subsrctempl);
gst_element_class_add_pad_template (gstelement_class, subpicsrctempl);
- gst_element_class_add_pad_template (gstelement_class,
- gst_static_pad_template_get (&sink_templ));
+ gst_element_class_add_static_pad_template (gstelement_class, &sink_templ);
gst_element_class_set_static_metadata (gstelement_class, "Avi demuxer",
"Codec/Demuxer",
diff --git a/gst/avi/gstavimux.c b/gst/avi/gstavimux.c
index ddfac1309..222d863d8 100644
--- a/gst/avi/gstavimux.c
+++ b/gst/avi/gstavimux.c
@@ -252,12 +252,11 @@ gst_avi_mux_class_init (GstAviMuxClass * klass)
gstelement_class->release_pad = GST_DEBUG_FUNCPTR (gst_avi_mux_release_pad);
gstelement_class->change_state = GST_DEBUG_FUNCPTR (gst_avi_mux_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 (&audio_sink_factory));
- gst_element_class_add_pad_template (gstelement_class,
- gst_static_pad_template_get (&video_sink_factory));
+ gst_element_class_add_static_pad_template (gstelement_class, &src_factory);
+ gst_element_class_add_static_pad_template (gstelement_class,
+ &audio_sink_factory);
+ gst_element_class_add_static_pad_template (gstelement_class,
+ &video_sink_factory);
gst_element_class_set_static_metadata (gstelement_class, "Avi muxer",
"Codec/Muxer",
diff --git a/gst/avi/gstavisubtitle.c b/gst/avi/gstavisubtitle.c
index a54ef66f2..25c9cca20 100644
--- a/gst/avi/gstavisubtitle.c
+++ b/gst/avi/gstavisubtitle.c
@@ -327,10 +327,8 @@ gst_avi_subtitle_class_init (GstAviSubtitleClass * klass)
gstelement_class->send_event =
GST_DEBUG_FUNCPTR (gst_avi_subtitle_send_event);
- 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,
"Avi subtitle parser", "Codec/Parser/Subtitle",
diff --git a/gst/cutter/gstcutter.c b/gst/cutter/gstcutter.c
index 6d41ef739..b13ddf6c3 100644
--- a/gst/cutter/gstcutter.c
+++ b/gst/cutter/gstcutter.c
@@ -147,13 +147,12 @@ gst_cutter_class_init (GstCutterClass * klass)
GST_DEBUG_CATEGORY_INIT (cutter_debug, "cutter", 0, "Audio cutting");
- gst_element_class_add_pad_template (element_class,
- gst_static_pad_template_get (&cutter_src_factory));
- gst_element_class_add_pad_template (element_class,
- gst_static_pad_template_get (&cutter_sink_factory));
+ gst_element_class_add_static_pad_template (element_class,
+ &cutter_src_factory);
+ gst_element_class_add_static_pad_template (element_class,
+ &cutter_sink_factory);
gst_element_class_set_static_metadata (element_class, "Audio cutter",
- "Filter/Editor/Audio",
- "Audio Cutter to split audio into non-silent bits",
+ "Filter/Editor/Audio", "Audio Cutter to split audio into non-silent bits",
"Thomas Vander Stichele <thomas at apestaart dot org>");
element_class->change_state = gst_cutter_change_state;
}
diff --git a/gst/debugutils/breakmydata.c b/gst/debugutils/breakmydata.c
index 7fe01b60c..3722d30f5 100644
--- a/gst/debugutils/breakmydata.c
+++ b/gst/debugutils/breakmydata.c
@@ -138,10 +138,10 @@ gst_break_my_data_class_init (GstBreakMyDataClass * klass)
"probability for each byte in the buffer to be changed", 0.0, 1.0,
0.0, G_PARAM_READWRITE | G_PARAM_CONSTRUCT | G_PARAM_STATIC_STRINGS));
- gst_element_class_add_pad_template (gstelement_class,
- gst_static_pad_template_get (&bmd_sink_template));
- gst_element_class_add_pad_template (gstelement_class,
- gst_static_pad_template_get (&bmd_src_template));
+ gst_element_class_add_static_pad_template (gstelement_class,
+ &bmd_sink_template);
+ gst_element_class_add_static_pad_template (gstelement_class,
+ &bmd_src_template);
gst_element_class_set_static_metadata (gstelement_class, "Break my data",
"Testing",
diff --git a/gst/debugutils/cpureport.c b/gst/debugutils/cpureport.c
index 670794d71..f61c38e39 100644
--- a/gst/debugutils/cpureport.c
+++ b/gst/debugutils/cpureport.c
@@ -72,10 +72,10 @@ gst_cpu_report_class_init (GstCpuReportClass * g_class)
gobject_class->finalize = gst_cpu_report_finalize;
- gst_element_class_add_pad_template (element_class,
- gst_static_pad_template_get (&cpu_report_sink_template));
- gst_element_class_add_pad_template (element_class,
- gst_static_pad_template_get (&cpu_report_src_template));
+ gst_element_class_add_static_pad_template (element_class,
+ &cpu_report_sink_template);
+ gst_element_class_add_static_pad_template (element_class,
+ &cpu_report_src_template);
gst_element_class_set_static_metadata (element_class, "CPU report",
"Testing",
diff --git a/gst/debugutils/gstcapsdebug.c b/gst/debugutils/gstcapsdebug.c
index a27447bd0..c2bc55153 100644
--- a/gst/debugutils/gstcapsdebug.c
+++ b/gst/debugutils/gstcapsdebug.c
@@ -77,10 +77,10 @@ gst_caps_debug_class_init (GstCapsDebugClass * klass)
GST_DEBUG_CATEGORY_INIT (gst_caps_debug_debug, "capsdebug", 0,
"debug category for capsdebug element");
- gst_element_class_add_pad_template (element_class,
- gst_static_pad_template_get (&gst_caps_debug_src_template));
- gst_element_class_add_pad_template (element_class,
- gst_static_pad_template_get (&gst_caps_debug_sink_template));
+ gst_element_class_add_static_pad_template (element_class,
+ &gst_caps_debug_src_template);
+ gst_element_class_add_static_pad_template (element_class,
+ &gst_caps_debug_sink_template);
gst_element_class_set_static_metadata (element_class, "Caps debug",
"Generic", "Debug caps negotiation", "David Schleef <ds@schleef.org>");
diff --git a/gst/debugutils/gstcapssetter.c b/gst/debugutils/gstcapssetter.c
index 187adb73d..6b3db76d8 100644
--- a/gst/debugutils/gstcapssetter.c
+++ b/gst/debugutils/gstcapssetter.c
@@ -136,10 +136,10 @@ gst_caps_setter_class_init (GstCapsSetterClass * g_class)
"Set/merge caps on stream",
"Mark Nauwelaerts <mnauw@users.sourceforge.net>");
- gst_element_class_add_pad_template (element_class,
- gst_static_pad_template_get (&gst_caps_setter_sink_template));
- gst_element_class_add_pad_template (element_class,
- gst_static_pad_template_get (&gst_caps_setter_src_template));
+ gst_element_class_add_static_pad_template (element_class,
+ &gst_caps_setter_sink_template);
+ gst_element_class_add_static_pad_template (element_class,
+ &gst_caps_setter_src_template);
trans_class->transform_size =
GST_DEBUG_FUNCPTR (gst_caps_setter_transform_size);
diff --git a/gst/debugutils/gstnavigationtest.c b/gst/debugutils/gstnavigationtest.c
index de98900be..532fe1318 100644
--- a/gst/debugutils/gstnavigationtest.c
+++ b/gst/debugutils/gstnavigationtest.c
@@ -242,10 +242,10 @@ gst_navigationtest_class_init (GstNavigationtestClass * klass)
"Handle navigation events showing a black square following mouse pointer",
"David Schleef <ds@schleef.org>");
- gst_element_class_add_pad_template (element_class,
- gst_static_pad_template_get (&gst_navigationtest_sink_template));
- gst_element_class_add_pad_template (element_class,
- gst_static_pad_template_get (&gst_navigationtest_src_template));
+ gst_element_class_add_static_pad_template (element_class,
+ &gst_navigationtest_sink_template);
+ gst_element_class_add_static_pad_template (element_class,
+ &gst_navigationtest_src_template);
trans_class->src_event = GST_DEBUG_FUNCPTR (gst_navigationtest_src_event);
diff --git a/gst/debugutils/gstnavseek.c b/gst/debugutils/gstnavseek.c
index a38b608f4..fd9386c64 100644
--- a/gst/debugutils/gstnavseek.c
+++ b/gst/debugutils/gstnavseek.c
@@ -84,10 +84,10 @@ gst_navseek_class_init (GstNavSeekClass * klass)
"Time in seconds to seek by", 0.0, G_MAXDOUBLE, 5.0,
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
- gst_element_class_add_pad_template (element_class,
- gst_static_pad_template_get (&navseek_sink_template));
- gst_element_class_add_pad_template (element_class,
- gst_static_pad_template_get (&navseek_src_template));
+ gst_element_class_add_static_pad_template (element_class,
+ &navseek_sink_template);
+ gst_element_class_add_static_pad_template (element_class,
+ &navseek_src_template);
gst_element_class_set_static_metadata (element_class,
"Seek based on left-right arrows", "Filter/Video",
diff --git a/gst/debugutils/gstpushfilesrc.c b/gst/debugutils/gstpushfilesrc.c
index ba9b358f8..c60accb09 100644
--- a/gst/debugutils/gstpushfilesrc.c
+++ b/gst/debugutils/gstpushfilesrc.c
@@ -152,8 +152,7 @@ gst_push_file_src_class_init (GstPushFileSrcClass * g_class)
"Applied rate to use in TIME SEGMENT", G_MINDOUBLE, G_MAXDOUBLE,
DEFAULT_APPLIED_RATE, G_PARAM_READWRITE));
- 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_static_metadata (element_class, "Push File Source",
"Testing",
diff --git a/gst/debugutils/gsttaginject.c b/gst/debugutils/gsttaginject.c
index 1430d2204..abdb79775 100644
--- a/gst/debugutils/gsttaginject.c
+++ b/gst/debugutils/gsttaginject.c
@@ -116,10 +116,8 @@ gst_tag_inject_class_init (GstTagInjectClass * klass)
gst_element_class_set_static_metadata (gstelement_class,
"TagInject",
"Generic", "inject metadata tags", "Stefan Kost <ensonic@users.sf.net>");
- gst_element_class_add_pad_template (gstelement_class,
- gst_static_pad_template_get (&srctemplate));
- gst_element_class_add_pad_template (gstelement_class,
- gst_static_pad_template_get (&sinktemplate));
+ gst_element_class_add_static_pad_template (gstelement_class, &srctemplate);
+ gst_element_class_add_static_pad_template (gstelement_class, &sinktemplate);
gstbasetrans_class->transform_ip =
GST_DEBUG_FUNCPTR (gst_tag_inject_transform_ip);
diff --git a/gst/debugutils/progressreport.c b/gst/debugutils/progressreport.c
index 1426ca832..906bf0f05 100644
--- a/gst/debugutils/progressreport.c
+++ b/gst/debugutils/progressreport.c
@@ -165,10 +165,10 @@ gst_progress_report_class_init (GstProgressReportClass * g_class)
"Format to use for the querying", DEFAULT_FORMAT,
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
- gst_element_class_add_pad_template (element_class,
- gst_static_pad_template_get (&progress_report_sink_template));
- gst_element_class_add_pad_template (element_class,
- gst_static_pad_template_get (&progress_report_src_template));
+ gst_element_class_add_static_pad_template (element_class,
+ &progress_report_sink_template);
+ gst_element_class_add_static_pad_template (element_class,
+ &progress_report_src_template);
gst_element_class_set_static_metadata (element_class, "Progress report",
"Testing",
diff --git a/gst/debugutils/rndbuffersize.c b/gst/debugutils/rndbuffersize.c
index 9ebd12c5d..a5f1d69d3 100644
--- a/gst/debugutils/rndbuffersize.c
+++ b/gst/debugutils/rndbuffersize.c
@@ -120,10 +120,8 @@ gst_rnd_buffer_size_class_init (GstRndBufferSizeClass * klass)
gobject_class->get_property = gst_rnd_buffer_size_get_property;
gobject_class->finalize = gst_rnd_buffer_size_finalize;
- 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, "Random buffer size",
"Testing", "pull random sized buffers",
diff --git a/gst/debugutils/testplugin.c b/gst/debugutils/testplugin.c
index 7d104cd40..ef9ca0fa1 100644
--- a/gst/debugutils/testplugin.c
+++ b/gst/debugutils/testplugin.c
@@ -112,8 +112,7 @@ gst_test_class_init (GstTestClass * klass)
g_object_class_install_property (object_class, 2 * i + 2, spec);
}
- gst_element_class_add_pad_template (gstelement_class,
- gst_static_pad_template_get (&sinktemplate));
+ gst_element_class_add_static_pad_template (gstelement_class, &sinktemplate);
gst_element_class_set_static_metadata (gstelement_class, "Test plugin",
"Testing", "perform a number of tests", "Benjamin Otte <otte@gnome>");
diff --git a/gst/deinterlace/gstdeinterlace.c b/gst/deinterlace/gstdeinterlace.c
index 644a75aee..6ef5c610a 100644
--- a/gst/deinterlace/gstdeinterlace.c
+++ b/gst/deinterlace/gstdeinterlace.c
@@ -486,10 +486,8 @@ gst_deinterlace_class_init (GstDeinterlaceClass * klass)
GstElementClass *element_class = (GstElementClass *) klass;
- 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 (&sink_templ));
+ gst_element_class_add_static_pad_template (element_class, &src_templ);
+ gst_element_class_add_static_pad_template (element_class, &sink_templ);
gst_element_class_set_static_metadata (element_class,
"Deinterlacer",
diff --git a/gst/dtmf/gstdtmfsrc.c b/gst/dtmf/gstdtmfsrc.c
index 49a09e6ff..88f0f0824 100644
--- a/gst/dtmf/gstdtmfsrc.c
+++ b/gst/dtmf/gstdtmfsrc.c
@@ -251,8 +251,8 @@ gst_dtmf_src_class_init (GstDTMFSrcClass * klass)
GST_DEBUG_CATEGORY_INIT (gst_dtmf_src_debug, "dtmfsrc", 0, "dtmfsrc element");
- gst_element_class_add_pad_template (gstelement_class,
- gst_static_pad_template_get (&gst_dtmf_src_template));
+ gst_element_class_add_static_pad_template (gstelement_class,
+ &gst_dtmf_src_template);
gst_element_class_set_static_metadata (gstelement_class,
"DTMF tone generator", "Source/Audio", "Generates DTMF tones",
diff --git a/gst/dtmf/gstrtpdtmfdepay.c b/gst/dtmf/gstrtpdtmfdepay.c
index f625ac5ad..b7827be7a 100644
--- a/gst/dtmf/gstrtpdtmfdepay.c
+++ b/gst/dtmf/gstrtpdtmfdepay.c
@@ -212,10 +212,10 @@ gst_rtp_dtmf_depay_class_init (GstRtpDTMFDepayClass * klass)
gstelement_class = GST_ELEMENT_CLASS (klass);
gstrtpbasedepayload_class = GST_RTP_BASE_DEPAYLOAD_CLASS (klass);
- gst_element_class_add_pad_template (gstelement_class,
- gst_static_pad_template_get (&gst_rtp_dtmf_depay_src_template));
- gst_element_class_add_pad_template (gstelement_class,
- gst_static_pad_template_get (&gst_rtp_dtmf_depay_sink_template));
+ gst_element_class_add_static_pad_template (gstelement_class,
+ &gst_rtp_dtmf_depay_src_template);
+ gst_element_class_add_static_pad_template (gstelement_class,
+ &gst_rtp_dtmf_depay_sink_template);
GST_DEBUG_CATEGORY_INIT (gst_rtp_dtmf_depay_debug,
"rtpdtmfdepay", 0, "rtpdtmfdepay element");
diff --git a/gst/dtmf/gstrtpdtmfsrc.c b/gst/dtmf/gstrtpdtmfsrc.c
index 373a4802b..9c783d392 100644
--- a/gst/dtmf/gstrtpdtmfsrc.c
+++ b/gst/dtmf/gstrtpdtmfsrc.c
@@ -213,8 +213,8 @@ gst_rtp_dtmf_src_class_init (GstRTPDTMFSrcClass * klass)
GST_DEBUG_CATEGORY_INIT (gst_rtp_dtmf_src_debug,
"rtpdtmfsrc", 0, "rtpdtmfsrc element");
- gst_element_class_add_pad_template (gstelement_class,
- gst_static_pad_template_get (&gst_rtp_dtmf_src_template));
+ gst_element_class_add_static_pad_template (gstelement_class,
+ &gst_rtp_dtmf_src_template);
gst_element_class_set_static_metadata (gstelement_class,
"RTP DTMF packet generator", "Source/Network",
diff --git a/gst/effectv/gstaging.c b/gst/effectv/gstaging.c
index 81219038e..a91b63b32 100644
--- a/gst/effectv/gstaging.c
+++ b/gst/effectv/gstaging.c
@@ -381,10 +381,10 @@ gst_agingtv_class_init (GstAgingTVClass * klass)
"AgingTV adds age to video input using scratches and dust",
"Sam Lantinga <slouken@devolution.com>");
- gst_element_class_add_pad_template (gstelement_class,
- gst_static_pad_template_get (&gst_agingtv_sink_template));
- gst_element_class_add_pad_template (gstelement_class,
- gst_static_pad_template_get (&gst_agingtv_src_template));
+ gst_element_class_add_static_pad_template (gstelement_class,
+ &gst_agingtv_sink_template);
+ gst_element_class_add_static_pad_template (gstelement_class,
+ &gst_agingtv_src_template);
trans_class->start = GST_DEBUG_FUNCPTR (gst_agingtv_start);
diff --git a/gst/effectv/gstdice.c b/gst/effectv/gstdice.c
index 7c90b660a..5c6e11107 100644
--- a/gst/effectv/gstdice.c
+++ b/gst/effectv/gstdice.c
@@ -294,10 +294,10 @@ gst_dicetv_class_init (GstDiceTVClass * klass)
"'Dices' the screen up into many small squares",
"Wim Taymans <wim.taymans@gmail.be>");
- gst_element_class_add_pad_template (gstelement_class,
- gst_static_pad_template_get (&gst_dicetv_sink_template));
- gst_element_class_add_pad_template (gstelement_class,
- gst_static_pad_template_get (&gst_dicetv_src_template));
+ gst_element_class_add_static_pad_template (gstelement_class,
+ &gst_dicetv_sink_template);
+ gst_element_class_add_static_pad_template (gstelement_class,
+ &gst_dicetv_src_template);
vfilter_class->set_info = GST_DEBUG_FUNCPTR (gst_dicetv_set_info);
vfilter_class->transform_frame =
diff --git a/gst/effectv/gstedge.c b/gst/effectv/gstedge.c
index d7fe89bab..07feb990b 100644
--- a/gst/effectv/gstedge.c
+++ b/gst/effectv/gstedge.c
@@ -236,10 +236,10 @@ gst_edgetv_class_init (GstEdgeTVClass * klass)
"Filter/Effect/Video",
"Apply edge detect on video", "Wim Taymans <wim.taymans@chello.be>");
- gst_element_class_add_pad_template (gstelement_class,
- gst_static_pad_template_get (&gst_edgetv_sink_template));
- gst_element_class_add_pad_template (gstelement_class,
- gst_static_pad_template_get (&gst_edgetv_src_template));
+ gst_element_class_add_static_pad_template (gstelement_class,
+ &gst_edgetv_sink_template);
+ gst_element_class_add_static_pad_template (gstelement_class,
+ &gst_edgetv_src_template);
trans_class->start = GST_DEBUG_FUNCPTR (gst_edgetv_start);
diff --git a/gst/effectv/gstop.c b/gst/effectv/gstop.c
index 82da702d4..283878f8c 100644
--- a/gst/effectv/gstop.c
+++ b/gst/effectv/gstop.c
@@ -396,10 +396,10 @@ gst_optv_class_init (GstOpTVClass * klass)
"FUKUCHI, Kentarou <fukuchi@users.sourceforge.net>, "
"Sebastian Dröge <sebastian.droege@collabora.co.uk>");
- gst_element_class_add_pad_template (gstelement_class,
- gst_static_pad_template_get (&gst_optv_sink_template));
- gst_element_class_add_pad_template (gstelement_class,
- gst_static_pad_template_get (&gst_optv_src_template));
+ gst_element_class_add_static_pad_template (gstelement_class,
+ &gst_optv_sink_template);
+ gst_element_class_add_static_pad_template (gstelement_class,
+ &gst_optv_src_template);
trans_class->start = GST_DEBUG_FUNCPTR (gst_optv_start);
diff --git a/gst/effectv/gstquark.c b/gst/effectv/gstquark.c
index 098e20c5a..12ade750c 100644
--- a/gst/effectv/gstquark.c
+++ b/gst/effectv/gstquark.c
@@ -279,10 +279,10 @@ gst_quarktv_class_init (GstQuarkTVClass * klass)
"Filter/Effect/Video",
"Motion dissolver", "FUKUCHI, Kentarou <fukuchi@users.sourceforge.net>");
- gst_element_class_add_pad_template (gstelement_class,
- gst_static_pad_template_get (&gst_quarktv_sink_template));
- gst_element_class_add_pad_template (gstelement_class,
- gst_static_pad_template_get (&gst_quarktv_src_template));
+ gst_element_class_add_static_pad_template (gstelement_class,
+ &gst_quarktv_sink_template);
+ gst_element_class_add_static_pad_template (gstelement_class,
+ &gst_quarktv_src_template);
trans_class->start = GST_DEBUG_FUNCPTR (gst_quarktv_start);
diff --git a/gst/effectv/gstradioac.c b/gst/effectv/gstradioac.c
index 1af42349b..b663684c4 100644
--- a/gst/effectv/gstradioac.c
+++ b/gst/effectv/gstradioac.c
@@ -598,10 +598,10 @@ gst_radioactv_class_init (GstRadioacTVClass * klass)
"FUKUCHI, Kentarou <fukuchi@users.sourceforge.net>, "
"Sebastian Dröge <sebastian.droege@collabora.co.uk>");
- gst_element_class_add_pad_template (gstelement_class,
- gst_static_pad_template_get (&gst_radioactv_sink_template));
- gst_element_class_add_pad_template (gstelement_class,
- gst_static_pad_template_get (&gst_radioactv_src_template));
+ gst_element_class_add_static_pad_template (gstelement_class,
+ &gst_radioactv_sink_template);
+ gst_element_class_add_static_pad_template (gstelement_class,
+ &gst_radioactv_src_template);
trans_class->start = GST_DEBUG_FUNCPTR (gst_radioactv_start);
diff --git a/gst/effectv/gstrev.c b/gst/effectv/gstrev.c
index 003d36a60..2f95950fb 100644
--- a/gst/effectv/gstrev.c
+++ b/gst/effectv/gstrev.c
@@ -230,10 +230,10 @@ gst_revtv_class_init (GstRevTVClass * klass)
"A video waveform monitor for each line of video processed",
"Wim Taymans <wim.taymans@gmail.be>");
- gst_element_class_add_pad_template (gstelement_class,
- gst_static_pad_template_get (&gst_revtv_sink_template));
- gst_element_class_add_pad_template (gstelement_class,
- gst_static_pad_template_get (&gst_revtv_src_template));
+ gst_element_class_add_static_pad_template (gstelement_class,
+ &gst_revtv_sink_template);
+ gst_element_class_add_static_pad_template (gstelement_class,
+ &gst_revtv_src_template);
vfilter_class->transform_frame =
GST_DEBUG_FUNCPTR (gst_revtv_transform_frame);
diff --git a/gst/effectv/gstripple.c b/gst/effectv/gstripple.c
index f81e4d73b..a4ac6f79e 100644
--- a/gst/effectv/gstripple.c
+++ b/gst/effectv/gstripple.c
@@ -586,10 +586,10 @@ gst_rippletv_class_init (GstRippleTVClass * klass)
"FUKUCHI, Kentarou <fukuchi@users.sourceforge.net>, "
"Sebastian Dröge <sebastian.droege@collabora.co.uk>");
- gst_element_class_add_pad_template (gstelement_class,
- gst_static_pad_template_get (&gst_rippletv_sink_template));
- gst_element_class_add_pad_template (gstelement_class,
- gst_static_pad_template_get (&gst_rippletv_src_template));
+ gst_element_class_add_static_pad_template (gstelement_class,
+ &gst_rippletv_sink_template);
+ gst_element_class_add_static_pad_template (gstelement_class,
+ &gst_rippletv_src_template);
trans_class->start = GST_DEBUG_FUNCPTR (gst_rippletv_start);
diff --git a/gst/effectv/gstshagadelic.c b/gst/effectv/gstshagadelic.c
index 2564cb330..721a1513a 100644
--- a/gst/effectv/gstshagadelic.c
+++ b/gst/effectv/gstshagadelic.c
@@ -238,10 +238,10 @@ gst_shagadelictv_class_init (GstShagadelicTVClass * klass)
"Oh behave, ShagedelicTV makes images shagadelic!",
"Wim Taymans <wim.taymans@chello.be>");
- gst_element_class_add_pad_template (gstelement_class,
- gst_static_pad_template_get (&gst_shagadelictv_sink_template));
- gst_element_class_add_pad_template (gstelement_class,
- gst_static_pad_template_get (&gst_shagadelictv_src_template));
+ gst_element_class_add_static_pad_template (gstelement_class,
+ &gst_shagadelictv_sink_template);
+ gst_element_class_add_static_pad_template (gstelement_class,
+ &gst_shagadelictv_src_template);
vfilter_class->set_info = GST_DEBUG_FUNCPTR (gst_shagadelictv_set_info);
vfilter_class->transform_frame =
diff --git a/gst/effectv/gststreak.c b/gst/effectv/gststreak.c
index be7149c95..44ed1507d 100644
--- a/gst/effectv/gststreak.c
+++ b/gst/effectv/gststreak.c
@@ -246,10 +246,10 @@ gst_streaktv_class_init (GstStreakTVClass * klass)
"FUKUCHI, Kentarou <fukuchi@users.sourceforge.net>, "
"Sebastian Dröge <sebastian.droege@collabora.co.uk>");
- gst_element_class_add_pad_template (gstelement_class,
- gst_static_pad_template_get (&gst_streaktv_sink_template));
- gst_element_class_add_pad_template (gstelement_class,
- gst_static_pad_template_get (&gst_streaktv_src_template));
+ gst_element_class_add_static_pad_template (gstelement_class,
+ &gst_streaktv_sink_template);
+ gst_element_class_add_static_pad_template (gstelement_class,
+ &gst_streaktv_src_template);
trans_class->start = GST_DEBUG_FUNCPTR (gst_streaktv_start);
diff --git a/gst/effectv/gstvertigo.c b/gst/effectv/gstvertigo.c
index 3e575cbb4..f49a7d2ee 100644
--- a/gst/effectv/gstvertigo.c
+++ b/gst/effectv/gstvertigo.c
@@ -305,10 +305,10 @@ gst_vertigotv_class_init (GstVertigoTVClass * klass)
"A loopback alpha blending effector with rotating and scaling",
"Wim Taymans <wim.taymans@gmail.be>");
- gst_element_class_add_pad_template (gstelement_class,
- gst_static_pad_template_get (&gst_vertigotv_sink_template));
- gst_element_class_add_pad_template (gstelement_class,
- gst_static_pad_template_get (&gst_vertigotv_src_template));
+ gst_element_class_add_static_pad_template (gstelement_class,
+ &gst_vertigotv_sink_template);
+ gst_element_class_add_static_pad_template (gstelement_class,
+ &gst_vertigotv_src_template);
trans_class->start = GST_DEBUG_FUNCPTR (gst_vertigotv_start);
diff --git a/gst/effectv/gstwarp.c b/gst/effectv/gstwarp.c
index 327c9de52..841ed8ccb 100644
--- a/gst/effectv/gstwarp.c
+++ b/gst/effectv/gstwarp.c
@@ -245,10 +245,10 @@ gst_warptv_class_init (GstWarpTVClass * klass)
"WarpTV does realtime goo'ing of the video input",
"Sam Lantinga <slouken@devolution.com>");
- gst_element_class_add_pad_template (gstelement_class,
- gst_static_pad_template_get (&gst_warptv_sink_template));
- gst_element_class_add_pad_template (gstelement_class,
- gst_static_pad_template_get (&gst_warptv_src_template));
+ gst_element_class_add_static_pad_template (gstelement_class,
+ &gst_warptv_sink_template);
+ gst_element_class_add_static_pad_template (gstelement_class,
+ &gst_warptv_src_template);
trans_class->start = GST_DEBUG_FUNCPTR (gst_warptv_start);
diff --git a/gst/flv/gstflvdemux.c b/gst/flv/gstflvdemux.c
index 70e7fba36..40edb99ff 100644
--- a/gst/flv/gstflvdemux.c
+++ b/gst/flv/gstflvdemux.c
@@ -3538,15 +3538,14 @@ gst_flv_demux_class_init (GstFlvDemuxClass * klass)
gstelement_class->get_index = GST_DEBUG_FUNCPTR (gst_flv_demux_get_index);
#endif
- gst_element_class_add_pad_template (gstelement_class,
- gst_static_pad_template_get (&flv_sink_template));
- gst_element_class_add_pad_template (gstelement_class,
- gst_static_pad_template_get (&audio_src_template));
- gst_element_class_add_pad_template (gstelement_class,
- gst_static_pad_template_get (&video_src_template));
+ gst_element_class_add_static_pad_template (gstelement_class,
+ &flv_sink_template);
+ gst_element_class_add_static_pad_template (gstelement_class,
+ &audio_src_template);
+ gst_element_class_add_static_pad_template (gstelement_class,
+ &video_src_template);
gst_element_class_set_static_metadata (gstelement_class, "FLV Demuxer",
- "Codec/Demuxer",
- "Demux FLV feeds into digital streams",
+ "Codec/Demuxer", "Demux FLV feeds into digital streams",
"Julien Moutte <julien@moutte.net>");
}
diff --git a/gst/flv/gstflvmux.c b/gst/flv/gstflvmux.c
index 48f8b6604..40850aa68 100644
--- a/gst/flv/gstflvmux.c
+++ b/gst/flv/gstflvmux.c
@@ -186,12 +186,11 @@ gst_flv_mux_class_init (GstFlvMuxClass * klass)
GST_DEBUG_FUNCPTR (gst_flv_mux_request_new_pad);
gstelement_class->release_pad = GST_DEBUG_FUNCPTR (gst_flv_mux_release_pad);
- gst_element_class_add_pad_template (gstelement_class,
- gst_static_pad_template_get (&videosink_templ));
- gst_element_class_add_pad_template (gstelement_class,
- gst_static_pad_template_get (&audiosink_templ));
- gst_element_class_add_pad_template (gstelement_class,
- gst_static_pad_template_get (&src_templ));
+ gst_element_class_add_static_pad_template (gstelement_class,
+ &videosink_templ);
+ gst_element_class_add_static_pad_template (gstelement_class,
+ &audiosink_templ);
+ gst_element_class_add_static_pad_template (gstelement_class, &src_templ);
gst_element_class_set_static_metadata (gstelement_class, "FLV muxer",
"Codec/Muxer",
"Muxes video/audio streams into a FLV stream",
diff --git a/gst/goom/gstgoom.c b/gst/goom/gstgoom.c
index 7cb1bd84c..dbbe94184 100644
--- a/gst/goom/gstgoom.c
+++ b/gst/goom/gstgoom.c
@@ -119,10 +119,8 @@ gst_goom_class_init (GstGoomClass * klass)
"Visualization",
"Takes frames of data and outputs video frames using the GOOM filter",
"Wim Taymans <wim@fluendo.com>");
- 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);
visualizer_class->setup = GST_DEBUG_FUNCPTR (gst_goom_setup);
visualizer_class->render = GST_DEBUG_FUNCPTR (gst_goom_render);
diff --git a/gst/goom2k1/gstgoom.c b/gst/goom2k1/gstgoom.c
index 0c97e9422..cfbfcbc2f 100644
--- a/gst/goom2k1/gstgoom.c
+++ b/gst/goom2k1/gstgoom.c
@@ -104,10 +104,8 @@ gst_goom2k1_class_init (GstGoom2k1Class * klass)
"GOOM: what a GOOM! 2k1 edition", "Visualization",
"Takes frames of data and outputs video frames using the GOOM 2k1 filter",
"Wim Taymans <wim@fluendo.com>");
- 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_DEBUG_CATEGORY_INIT (goom2k1_debug, "goom2k1", 0,
"goom2k1 visualisation element");
diff --git a/gst/icydemux/gsticydemux.c b/gst/icydemux/gsticydemux.c
index dade21bd6..dc0c266ab 100644
--- a/gst/icydemux/gsticydemux.c
+++ b/gst/icydemux/gsticydemux.c
@@ -103,10 +103,8 @@ gst_icydemux_class_init (GstICYDemuxClass * klass)
gstelement_class->change_state = gst_icydemux_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, "ICY tag demuxer",
"Codec/Demuxer/Metadata",
diff --git a/gst/id3demux/gstid3demux.c b/gst/id3demux/gstid3demux.c
index c67a6ff0b..d491bb87b 100644
--- a/gst/id3demux/gstid3demux.c
+++ b/gst/id3demux/gstid3demux.c
@@ -108,8 +108,7 @@ gst_id3demux_class_init (GstID3DemuxClass * klass)
"and ID3v2 tags are present", DEFAULT_PREFER_V1,
G_PARAM_READWRITE | G_PARAM_CONSTRUCT | G_PARAM_STATIC_STRINGS));
- gst_element_class_add_pad_template (gstelement_class,
- gst_static_pad_template_get (&sink_factory));
+ gst_element_class_add_static_pad_template (gstelement_class, &sink_factory);
gst_element_class_set_static_metadata (gstelement_class, "ID3 tag demuxer",
"Codec/Demuxer/Metadata",
diff --git a/gst/imagefreeze/gstimagefreeze.c b/gst/imagefreeze/gstimagefreeze.c
index 8b1bfc5b1..42a14e60f 100644
--- a/gst/imagefreeze/gstimagefreeze.c
+++ b/gst/imagefreeze/gstimagefreeze.c
@@ -101,10 +101,10 @@ gst_image_freeze_class_init (GstImageFreezeClass * klass)
"Generates a still frame stream from an image",
"Sebastian Dröge <sebastian.droege@collabora.co.uk>");
- gst_element_class_add_pad_template (gstelement_class,
- gst_static_pad_template_get (&sink_pad_template));
- gst_element_class_add_pad_template (gstelement_class,
- gst_static_pad_template_get (&src_pad_template));
+ gst_element_class_add_static_pad_template (gstelement_class,
+ &sink_pad_template);
+ gst_element_class_add_static_pad_template (gstelement_class,
+ &src_pad_template);
}
static void
diff --git a/gst/interleave/deinterleave.c b/gst/interleave/deinterleave.c
index 81ebbc2ba..0c2e50286 100644
--- a/gst/interleave/deinterleave.c
+++ b/gst/interleave/deinterleave.c
@@ -175,10 +175,8 @@ gst_deinterleave_class_init (GstDeinterleaveClass * klass)
"Andy Wingo <wingo at pobox.com>, " "Iain <iain@prettypeople.org>, "
"Sebastian Dröge <slomo@circular-chaos.org>");
- 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);
gstelement_class->change_state = gst_deinterleave_change_state;
diff --git a/gst/interleave/interleave.c b/gst/interleave/interleave.c
index 45d72f9f9..b2ac76e93 100644
--- a/gst/interleave/interleave.c
+++ b/gst/interleave/interleave.c
@@ -359,10 +359,8 @@ gst_interleave_class_init (GstInterleaveClass * klass)
"Andy Wingo <wingo at pobox.com>, "
"Sebastian Dröge <slomo@circular-chaos.org>");
- 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);
/* Reference GstInterleavePad class to have the type registered from
* a threadsafe context
diff --git a/gst/isomp4/gstrtpxqtdepay.c b/gst/isomp4/gstrtpxqtdepay.c
index 9116ccc0b..8a3c60e64 100644
--- a/gst/isomp4/gstrtpxqtdepay.c
+++ b/gst/isomp4/gstrtpxqtdepay.c
@@ -129,10 +129,10 @@ gst_rtp_xqt_depay_class_init (GstRtpXQTDepayClass * klass)
GST_DEBUG_CATEGORY_INIT (rtpxqtdepay_debug, "rtpxqtdepay", 0,
"QT Media RTP Depayloader");
- gst_element_class_add_pad_template (gstelement_class,
- gst_static_pad_template_get (&gst_rtp_xqt_depay_src_template));
- gst_element_class_add_pad_template (gstelement_class,
- gst_static_pad_template_get (&gst_rtp_xqt_depay_sink_template));
+ gst_element_class_add_static_pad_template (gstelement_class,
+ &gst_rtp_xqt_depay_src_template);
+ gst_element_class_add_static_pad_template (gstelement_class,
+ &gst_rtp_xqt_depay_sink_template);
gst_element_class_set_static_metadata (gstelement_class,
"RTP packet depayloader", "Codec/Depayloader/Network",
diff --git a/gst/isomp4/qtdemux.c b/gst/isomp4/qtdemux.c
index fbd9f885f..bf9869fb5 100644
--- a/gst/isomp4/qtdemux.c
+++ b/gst/isomp4/qtdemux.c
@@ -554,14 +554,14 @@ gst_qtdemux_class_init (GstQTDemuxClass * klass)
gst_tag_register_musicbrainz_tags ();
- gst_element_class_add_pad_template (gstelement_class,
- gst_static_pad_template_get (&gst_qtdemux_sink_template));
- gst_element_class_add_pad_template (gstelement_class,
- gst_static_pad_template_get (&gst_qtdemux_videosrc_template));
- gst_element_class_add_pad_template (gstelement_class,
- gst_static_pad_template_get (&gst_qtdemux_audiosrc_template));
- gst_element_class_add_pad_template (gstelement_class,
- gst_static_pad_template_get (&gst_qtdemux_subsrc_template));
+ gst_element_class_add_static_pad_template (gstelement_class,
+ &gst_qtdemux_sink_template);
+ gst_element_class_add_static_pad_template (gstelement_class,
+ &gst_qtdemux_videosrc_template);
+ gst_element_class_add_static_pad_template (gstelement_class,
+ &gst_qtdemux_audiosrc_template);
+ gst_element_class_add_static_pad_template (gstelement_class,
+ &gst_qtdemux_subsrc_template);
gst_element_class_set_static_metadata (gstelement_class, "QuickTime demuxer",
"Codec/Demuxer",
"Demultiplex a QuickTime file into audio and video streams",
diff --git a/gst/law/alaw-decode.c b/gst/law/alaw-decode.c
index 88df489ae..bf6fcfecb 100644
--- a/gst/law/alaw-decode.c
+++ b/gst/law/alaw-decode.c
@@ -203,10 +203,10 @@ gst_alaw_dec_class_init (GstALawDecClass * klass)
GstElementClass *element_class = (GstElementClass *) klass;
GstAudioDecoderClass *audiodec_class = GST_AUDIO_DECODER_CLASS (klass);
- gst_element_class_add_pad_template (element_class,
- gst_static_pad_template_get (&alaw_dec_src_factory));
- gst_element_class_add_pad_template (element_class,
- gst_static_pad_template_get (&alaw_dec_sink_factory));
+ gst_element_class_add_static_pad_template (element_class,
+ &alaw_dec_src_factory);
+ gst_element_class_add_static_pad_template (element_class,
+ &alaw_dec_sink_factory);
audiodec_class->start = GST_DEBUG_FUNCPTR (gst_alaw_dec_start);
audiodec_class->set_format = GST_DEBUG_FUNCPTR (gst_alaw_dec_set_format);
diff --git a/gst/law/alaw-encode.c b/gst/law/alaw-encode.c
index ebee1920f..ff17000a7 100644
--- a/gst/law/alaw-encode.c
+++ b/gst/law/alaw-encode.c
@@ -408,10 +408,10 @@ gst_alaw_enc_class_init (GstALawEncClass * klass)
audio_encoder_class->handle_frame =
GST_DEBUG_FUNCPTR (gst_alaw_enc_handle_frame);
- gst_element_class_add_pad_template (element_class,
- gst_static_pad_template_get (&alaw_enc_src_factory));
- gst_element_class_add_pad_template (element_class,
- gst_static_pad_template_get (&alaw_enc_sink_factory));
+ gst_element_class_add_static_pad_template (element_class,
+ &alaw_enc_src_factory);
+ gst_element_class_add_static_pad_template (element_class,
+ &alaw_enc_sink_factory);
gst_element_class_set_static_metadata (element_class,
"A Law audio encoder", "Codec/Encoder/Audio",
diff --git a/gst/law/mulaw-decode.c b/gst/law/mulaw-decode.c
index 4d463bcde..912fb8cfe 100644
--- a/gst/law/mulaw-decode.c
+++ b/gst/law/mulaw-decode.c
@@ -149,10 +149,10 @@ gst_mulawdec_class_init (GstMuLawDecClass * klass)
GstElementClass *element_class = (GstElementClass *) klass;
GstAudioDecoderClass *audiodec_class = GST_AUDIO_DECODER_CLASS (klass);
- gst_element_class_add_pad_template (element_class,
- gst_static_pad_template_get (&mulaw_dec_src_factory));
- gst_element_class_add_pad_template (element_class,
- gst_static_pad_template_get (&mulaw_dec_sink_factory));
+ gst_element_class_add_static_pad_template (element_class,
+ &mulaw_dec_src_factory);
+ gst_element_class_add_static_pad_template (element_class,
+ &mulaw_dec_sink_factory);
audiodec_class->start = GST_DEBUG_FUNCPTR (gst_mulawdec_start);
diff --git a/gst/law/mulaw-encode.c b/gst/law/mulaw-encode.c
index 2e0b14b96..b22ce0dba 100644
--- a/gst/law/mulaw-encode.c
+++ b/gst/law/mulaw-encode.c
@@ -193,10 +193,10 @@ gst_mulawenc_class_init (GstMuLawEncClass * klass)
audio_encoder_class->handle_frame =
GST_DEBUG_FUNCPTR (gst_mulawenc_handle_frame);
- gst_element_class_add_pad_template (element_class,
- gst_static_pad_template_get (&mulaw_enc_src_factory));
- gst_element_class_add_pad_template (element_class,
- gst_static_pad_template_get (&mulaw_enc_sink_factory));
+ gst_element_class_add_static_pad_template (element_class,
+ &mulaw_enc_src_factory);
+ gst_element_class_add_static_pad_template (element_class,
+ &mulaw_enc_sink_factory);
gst_element_class_set_static_metadata (element_class, "Mu Law audio encoder",
"Codec/Encoder/Audio",
diff --git a/gst/level/gstlevel.c b/gst/level/gstlevel.c
index a8e41f0a9..aef6f5797 100644
--- a/gst/level/gstlevel.c
+++ b/gst/level/gstlevel.c
@@ -224,10 +224,10 @@ gst_level_class_init (GstLevelClass * klass)
GST_DEBUG_CATEGORY_INIT (level_debug, "level", 0, "Level calculation");
- gst_element_class_add_pad_template (element_class,
- gst_static_pad_template_get (&sink_template_factory));
- gst_element_class_add_pad_template (element_class,
- gst_static_pad_template_get (&src_template_factory));
+ gst_element_class_add_static_pad_template (element_class,
+ &sink_template_factory);
+ gst_element_class_add_static_pad_template (element_class,
+ &src_template_factory);
gst_element_class_set_static_metadata (element_class, "Level",
"Filter/Analyzer/Audio",
"RMS/Peak/Decaying Peak Level messager for audio/raw",
diff --git a/gst/matroska/matroska-demux.c b/gst/matroska/matroska-demux.c
index 391e274d0..c5fee777f 100644
--- a/gst/matroska/matroska-demux.c
+++ b/gst/matroska/matroska-demux.c
@@ -227,14 +227,13 @@ gst_matroska_demux_class_init (GstMatroskaDemuxClass * klass)
GST_DEBUG_FUNCPTR (gst_matroska_demux_get_index);
#endif
- gst_element_class_add_pad_template (gstelement_class,
- gst_static_pad_template_get (&video_src_templ));
- gst_element_class_add_pad_template (gstelement_class,
- gst_static_pad_template_get (&audio_src_templ));
- gst_element_class_add_pad_template (gstelement_class,
- gst_static_pad_template_get (&subtitle_src_templ));
- gst_element_class_add_pad_template (gstelement_class,
- gst_static_pad_template_get (&sink_templ));
+ gst_element_class_add_static_pad_template (gstelement_class,
+ &video_src_templ);
+ gst_element_class_add_static_pad_template (gstelement_class,
+ &audio_src_templ);
+ gst_element_class_add_static_pad_template (gstelement_class,
+ &subtitle_src_templ);
+ gst_element_class_add_static_pad_template (gstelement_class, &sink_templ);
gst_element_class_set_static_metadata (gstelement_class, "Matroska demuxer",
"Codec/Demuxer",
diff --git a/gst/matroska/matroska-mux.c b/gst/matroska/matroska-mux.c
index 811b12e32..04555757c 100644
--- a/gst/matroska/matroska-mux.c
+++ b/gst/matroska/matroska-mux.c
@@ -296,14 +296,13 @@ gst_matroska_mux_class_init (GstMatroskaMuxClass * klass)
gobject_class = (GObjectClass *) klass;
gstelement_class = (GstElementClass *) klass;
- gst_element_class_add_pad_template (gstelement_class,
- gst_static_pad_template_get (&videosink_templ));
- gst_element_class_add_pad_template (gstelement_class,
- gst_static_pad_template_get (&audiosink_templ));
- gst_element_class_add_pad_template (gstelement_class,
- gst_static_pad_template_get (&subtitlesink_templ));
- gst_element_class_add_pad_template (gstelement_class,
- gst_static_pad_template_get (&src_templ));
+ gst_element_class_add_static_pad_template (gstelement_class,
+ &videosink_templ);
+ gst_element_class_add_static_pad_template (gstelement_class,
+ &audiosink_templ);
+ gst_element_class_add_static_pad_template (gstelement_class,
+ &subtitlesink_templ);
+ gst_element_class_add_static_pad_template (gstelement_class, &src_templ);
gst_element_class_set_static_metadata (gstelement_class, "Matroska muxer",
"Codec/Muxer",
"Muxes video/audio/subtitle streams into a matroska stream",
diff --git a/gst/matroska/matroska-parse.c b/gst/matroska/matroska-parse.c
index 9bc5ce144..cc064b0c5 100644
--- a/gst/matroska/matroska-parse.c
+++ b/gst/matroska/matroska-parse.c
@@ -174,10 +174,8 @@ gst_matroska_parse_class_init (GstMatroskaParseClass * klass)
GST_DEBUG_FUNCPTR (gst_matroska_parse_get_index);
#endif
- gst_element_class_add_pad_template (gstelement_class,
- gst_static_pad_template_get (&src_templ));
- gst_element_class_add_pad_template (gstelement_class,
- gst_static_pad_template_get (&sink_templ));
+ gst_element_class_add_static_pad_template (gstelement_class, &src_templ);
+ gst_element_class_add_static_pad_template (gstelement_class, &sink_templ);
gst_element_class_set_static_metadata (gstelement_class,
"Matroska parser", "Codec/Parser",
diff --git a/gst/matroska/webm-mux.c b/gst/matroska/webm-mux.c
index 508f095eb..81113ec92 100644
--- a/gst/matroska/webm-mux.c
+++ b/gst/matroska/webm-mux.c
@@ -82,12 +82,11 @@ gst_webm_mux_class_init (GstWebMMuxClass * klass)
{
GstElementClass *gstelement_class = (GstElementClass *) klass;
- gst_element_class_add_pad_template (gstelement_class,
- gst_static_pad_template_get (&webm_videosink_templ));
- gst_element_class_add_pad_template (gstelement_class,
- gst_static_pad_template_get (&webm_audiosink_templ));
- gst_element_class_add_pad_template (gstelement_class,
- gst_static_pad_template_get (&webm_src_templ));
+ gst_element_class_add_static_pad_template (gstelement_class,
+ &webm_videosink_templ);
+ gst_element_class_add_static_pad_template (gstelement_class,
+ &webm_audiosink_templ);
+ gst_element_class_add_static_pad_template (gstelement_class, &webm_src_templ);
gst_element_class_set_static_metadata (gstelement_class, "WebM muxer",
"Codec/Muxer",
"Muxes video and audio streams into a WebM stream",
diff --git a/gst/monoscope/gstmonoscope.c b/gst/monoscope/gstmonoscope.c
index 9ff4fd576..3e702562c 100644
--- a/gst/monoscope/gstmonoscope.c
+++ b/gst/monoscope/gstmonoscope.c
@@ -104,10 +104,8 @@ gst_monoscope_class_init (GstMonoscopeClass * klass)
gstelement_class->change_state =
GST_DEBUG_FUNCPTR (gst_monoscope_change_state);
- gst_element_class_add_pad_template (gstelement_class,
- gst_static_pad_template_get (&src_template));
- gst_element_class_add_pad_template (gstelement_class,
- gst_static_pad_template_get (&sink_template));
+ gst_element_class_add_static_pad_template (gstelement_class, &src_template);
+ gst_element_class_add_static_pad_template (gstelement_class, &sink_template);
gst_element_class_set_static_metadata (gstelement_class, "Monoscope",
"Visualization",
"Displays a highly stabilised waveform of audio input",
diff --git a/gst/multifile/gstmultifilesink.c b/gst/multifile/gstmultifilesink.c
index 5d2878662..a12c63fca 100644
--- a/gst/multifile/gstmultifilesink.c
+++ b/gst/multifile/gstmultifilesink.c
@@ -318,8 +318,7 @@ gst_multi_file_sink_class_init (GstMultiFileSinkClass * klass)
GST_DEBUG_CATEGORY_INIT (gst_multi_file_sink_debug, "multifilesink", 0,
"multifilesink element");
- gst_element_class_add_pad_template (gstelement_class,
- gst_static_pad_template_get (&sinktemplate));
+ gst_element_class_add_static_pad_template (gstelement_class, &sinktemplate);
gst_element_class_set_static_metadata (gstelement_class, "Multi-File Sink",
"Sink/File",
"Write buffers to a sequentially named set of files",
diff --git a/gst/multifile/gstmultifilesrc.c b/gst/multifile/gstmultifilesrc.c
index 316c6e0e1..07707e228 100644
--- a/gst/multifile/gstmultifilesrc.c
+++ b/gst/multifile/gstmultifilesrc.c
@@ -188,11 +188,10 @@ gst_multi_file_src_class_init (GstMultiFileSrcClass * klass)
GST_DEBUG_CATEGORY_INIT (gst_multi_file_src_debug, "multifilesrc", 0,
"multifilesrc element");
- gst_element_class_add_pad_template (gstelement_class,
- gst_static_pad_template_get (&gst_multi_file_src_pad_template));
+ gst_element_class_add_static_pad_template (gstelement_class,
+ &gst_multi_file_src_pad_template);
gst_element_class_set_static_metadata (gstelement_class, "Multi-File Source",
- "Source/File",
- "Read a sequentially named set of files into buffers",
+ "Source/File", "Read a sequentially named set of files into buffers",
"David Schleef <ds@schleef.org>");
}
diff --git a/gst/multifile/gstsplitfilesrc.c b/gst/multifile/gstsplitfilesrc.c
index b66ddca20..7b7f5e354 100644
--- a/gst/multifile/gstsplitfilesrc.c
+++ b/gst/multifile/gstsplitfilesrc.c
@@ -122,8 +122,8 @@ gst_split_file_src_class_init (GstSplitFileSrcClass * klass)
GST_DEBUG_CATEGORY_INIT (splitfilesrc_debug, "splitfilesrc", 0,
"splitfilesrc element");
- gst_element_class_add_pad_template (gstelement_class,
- gst_static_pad_template_get (&gst_split_file_src_pad_template));
+ gst_element_class_add_static_pad_template (gstelement_class,
+ &gst_split_file_src_pad_template);
gst_element_class_set_static_metadata (gstelement_class, "Split-File Source",
"Source/File",
diff --git a/gst/multifile/gstsplitmuxsink.c b/gst/multifile/gstsplitmuxsink.c
index d39c0381d..3c8d23884 100644
--- a/gst/multifile/gstsplitmuxsink.c
+++ b/gst/multifile/gstsplitmuxsink.c
@@ -168,12 +168,12 @@ gst_splitmux_sink_class_init (GstSplitMuxSinkClass * klass)
"Convenience bin that muxes incoming streams into multiple time/size limited files",
"Jan Schmidt <jan@centricular.com>");
- gst_element_class_add_pad_template (gstelement_class,
- gst_static_pad_template_get (&video_sink_template));
- gst_element_class_add_pad_template (gstelement_class,
- gst_static_pad_template_get (&audio_sink_template));
- gst_element_class_add_pad_template (gstelement_class,
- gst_static_pad_template_get (&subtitle_sink_template));
+ gst_element_class_add_static_pad_template (gstelement_class,
+ &video_sink_template);
+ gst_element_class_add_static_pad_template (gstelement_class,
+ &audio_sink_template);
+ gst_element_class_add_static_pad_template (gstelement_class,
+ &subtitle_sink_template);
gstelement_class->change_state =
GST_DEBUG_FUNCPTR (gst_splitmux_sink_change_state);
diff --git a/gst/multifile/gstsplitmuxsrc.c b/gst/multifile/gstsplitmuxsrc.c
index e26c3d1f2..fee29e00a 100644
--- a/gst/multifile/gstsplitmuxsrc.c
+++ b/gst/multifile/gstsplitmuxsrc.c
@@ -198,12 +198,12 @@ gst_splitmux_src_class_init (GstSplitMuxSrcClass * klass)
"Source that reads a set of files created by splitmuxsink",
"Jan Schmidt <jan@centricular.com>");
- gst_element_class_add_pad_template (gstelement_class,
- gst_static_pad_template_get (&video_src_template));
- gst_element_class_add_pad_template (gstelement_class,
- gst_static_pad_template_get (&audio_src_template));
- gst_element_class_add_pad_template (gstelement_class,
- gst_static_pad_template_get (&subtitle_src_template));
+ gst_element_class_add_static_pad_template (gstelement_class,
+ &video_src_template);
+ gst_element_class_add_static_pad_template (gstelement_class,
+ &audio_src_template);
+ gst_element_class_add_static_pad_template (gstelement_class,
+ &subtitle_src_template);
gstelement_class->change_state =
GST_DEBUG_FUNCPTR (gst_splitmux_src_change_state);
diff --git a/gst/multipart/multipartdemux.c b/gst/multipart/multipartdemux.c
index 7695ae5d5..afbc42ad2 100644
--- a/gst/multipart/multipartdemux.c
+++ b/gst/multipart/multipartdemux.c
@@ -160,13 +160,12 @@ gst_multipart_demux_class_init (GstMultipartDemuxClass * klass)
gstelement_class->change_state = gst_multipart_demux_change_state;
- gst_element_class_add_pad_template (gstelement_class,
- gst_static_pad_template_get (&multipart_demux_sink_template_factory));
- gst_element_class_add_pad_template (gstelement_class,
- gst_static_pad_template_get (&multipart_demux_src_template_factory));
+ gst_element_class_add_static_pad_template (gstelement_class,
+ &multipart_demux_sink_template_factory);
+ gst_element_class_add_static_pad_template (gstelement_class,
+ &multipart_demux_src_template_factory);
gst_element_class_set_static_metadata (gstelement_class, "Multipart demuxer",
- "Codec/Demuxer",
- "demux multipart streams",
+ "Codec/Demuxer", "demux multipart streams",
"Wim Taymans <wim.taymans@gmail.com>, Sjoerd Simons <sjoerd@luon.net>");
}
diff --git a/gst/multipart/multipartmux.c b/gst/multipart/multipartmux.c
index 2ac67c109..17ae919ae 100644
--- a/gst/multipart/multipartmux.c
+++ b/gst/multipart/multipartmux.c
@@ -121,10 +121,8 @@ gst_multipart_mux_class_init (GstMultipartMuxClass * klass)
gstelement_class->request_new_pad = gst_multipart_mux_request_new_pad;
gstelement_class->change_state = gst_multipart_mux_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, "Multipart muxer",
"Codec/Muxer", "mux multipart streams", "Wim Taymans <wim@fluendo.com>");
diff --git a/gst/replaygain/gstrganalysis.c b/gst/replaygain/gstrganalysis.c
index 98c3ca628..a272c109d 100644
--- a/gst/replaygain/gstrganalysis.c
+++ b/gst/replaygain/gstrganalysis.c
@@ -267,10 +267,8 @@ gst_rg_analysis_class_init (GstRgAnalysisClass * klass)
trans_class->stop = GST_DEBUG_FUNCPTR (gst_rg_analysis_stop);
trans_class->passthrough_on_same_caps = TRUE;
- 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_static_metadata (element_class, "ReplayGain analysis",
"Filter/Analyzer/Audio",
"Perform the ReplayGain analysis",
diff --git a/gst/replaygain/gstrglimiter.c b/gst/replaygain/gstrglimiter.c
index 95363bed2..5e04e7d4f 100644
--- a/gst/replaygain/gstrglimiter.c
+++ b/gst/replaygain/gstrglimiter.c
@@ -106,10 +106,8 @@ gst_rg_limiter_class_init (GstRgLimiterClass * klass)
trans_class->transform_ip = GST_DEBUG_FUNCPTR (gst_rg_limiter_transform_ip);
trans_class->passthrough_on_same_caps = FALSE;
- 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_static_metadata (element_class, "ReplayGain limiter",
"Filter/Effect/Audio",
"Apply signal compression to raw audio data",
diff --git a/gst/replaygain/gstrgvolume.c b/gst/replaygain/gstrgvolume.c
index a53f4d60a..7c4f2811e 100644
--- a/gst/replaygain/gstrgvolume.c
+++ b/gst/replaygain/gstrgvolume.c
@@ -271,10 +271,8 @@ gst_rg_volume_class_init (GstRgVolumeClass * klass)
bin_class->add_element = NULL;
bin_class->remove_element = NULL;
- 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, "ReplayGain volume",
"Filter/Effect/Audio",
"Apply ReplayGain volume adjustment",
diff --git a/gst/rtp/gstasteriskh263.c b/gst/rtp/gstasteriskh263.c
index 0ab609dc0..8aa7fd451 100644
--- a/gst/rtp/gstasteriskh263.c
+++ b/gst/rtp/gstasteriskh263.c
@@ -78,10 +78,10 @@ gst_asteriskh263_class_init (GstAsteriskh263Class * klass)
gstelement_class->change_state = gst_asteriskh263_change_state;
- gst_element_class_add_pad_template (gstelement_class,
- gst_static_pad_template_get (&gst_asteriskh263_src_template));
- gst_element_class_add_pad_template (gstelement_class,
- gst_static_pad_template_get (&gst_asteriskh263_sink_template));
+ gst_element_class_add_static_pad_template (gstelement_class,
+ &gst_asteriskh263_src_template);
+ gst_element_class_add_static_pad_template (gstelement_class,
+ &gst_asteriskh263_sink_template);
gst_element_class_set_static_metadata (gstelement_class,
"RTP Asterisk H263 depayloader", "Codec/Depayloader/Network/RTP",
diff --git a/gst/rtp/gstrtpL16depay.c b/gst/rtp/gstrtpL16depay.c
index 41a8fff42..6e81946d9 100644
--- a/gst/rtp/gstrtpL16depay.c
+++ b/gst/rtp/gstrtpL16depay.c
@@ -99,10 +99,10 @@ gst_rtp_L16_depay_class_init (GstRtpL16DepayClass * klass)
gstrtpbasedepayload_class->set_caps = gst_rtp_L16_depay_setcaps;
gstrtpbasedepayload_class->process_rtp_packet = gst_rtp_L16_depay_process;
- gst_element_class_add_pad_template (gstelement_class,
- gst_static_pad_template_get (&gst_rtp_L16_depay_src_template));
- gst_element_class_add_pad_template (gstelement_class,
- gst_static_pad_template_get (&gst_rtp_L16_depay_sink_template));
+ gst_element_class_add_static_pad_template (gstelement_class,
+ &gst_rtp_L16_depay_src_template);
+ gst_element_class_add_static_pad_template (gstelement_class,
+ &gst_rtp_L16_depay_sink_template);
gst_element_class_set_static_metadata (gstelement_class,
"RTP audio depayloader", "Codec/Depayloader/Network/RTP",
diff --git a/gst/rtp/gstrtpL16pay.c b/gst/rtp/gstrtpL16pay.c
index db1c7de19..4783a650f 100644
--- a/gst/rtp/gstrtpL16pay.c
+++ b/gst/rtp/gstrtpL16pay.c
@@ -104,10 +104,10 @@ gst_rtp_L16_pay_class_init (GstRtpL16PayClass * klass)
gstrtpbasepayload_class->get_caps = gst_rtp_L16_pay_getcaps;
gstrtpbasepayload_class->handle_buffer = gst_rtp_L16_pay_handle_buffer;
- gst_element_class_add_pad_template (gstelement_class,
- gst_static_pad_template_get (&gst_rtp_L16_pay_src_template));
- gst_element_class_add_pad_template (gstelement_class,
- gst_static_pad_template_get (&gst_rtp_L16_pay_sink_template));
+ gst_element_class_add_static_pad_template (gstelement_class,
+ &gst_rtp_L16_pay_src_template);
+ gst_element_class_add_static_pad_template (gstelement_class,
+ &gst_rtp_L16_pay_sink_template);
gst_element_class_set_static_metadata (gstelement_class,
"RTP audio payloader", "Codec/Payloader/Network/RTP",
diff --git a/gst/rtp/gstrtpL24depay.c b/gst/rtp/gstrtpL24depay.c
index dc7a33882..9ec03499f 100644
--- a/gst/rtp/gstrtpL24depay.c
+++ b/gst/rtp/gstrtpL24depay.c
@@ -88,10 +88,10 @@ gst_rtp_L24_depay_class_init (GstRtpL24DepayClass * klass)
gstrtpbasedepayload_class->set_caps = gst_rtp_L24_depay_setcaps;
gstrtpbasedepayload_class->process_rtp_packet = gst_rtp_L24_depay_process;
- gst_element_class_add_pad_template (gstelement_class,
- gst_static_pad_template_get (&gst_rtp_L24_depay_src_template));
- gst_element_class_add_pad_template (gstelement_class,
- gst_static_pad_template_get (&gst_rtp_L24_depay_sink_template));
+ gst_element_class_add_static_pad_template (gstelement_class,
+ &gst_rtp_L24_depay_src_template);
+ gst_element_class_add_static_pad_template (gstelement_class,
+ &gst_rtp_L24_depay_sink_template);
gst_element_class_set_static_metadata (gstelement_class,
"RTP audio depayloader", "Codec/Depayloader/Network/RTP",
diff --git a/gst/rtp/gstrtpL24pay.c b/gst/rtp/gstrtpL24pay.c
index 1bb37cb3d..936bd4431 100644
--- a/gst/rtp/gstrtpL24pay.c
+++ b/gst/rtp/gstrtpL24pay.c
@@ -93,10 +93,10 @@ gst_rtp_L24_pay_class_init (GstRtpL24PayClass * klass)
gstrtpbasepayload_class->get_caps = gst_rtp_L24_pay_getcaps;
gstrtpbasepayload_class->handle_buffer = gst_rtp_L24_pay_handle_buffer;
- gst_element_class_add_pad_template (gstelement_class,
- gst_static_pad_template_get (&gst_rtp_L24_pay_src_template));
- gst_element_class_add_pad_template (gstelement_class,
- gst_static_pad_template_get (&gst_rtp_L24_pay_sink_template));
+ gst_element_class_add_static_pad_template (gstelement_class,
+ &gst_rtp_L24_pay_src_template);
+ gst_element_class_add_static_pad_template (gstelement_class,
+ &gst_rtp_L24_pay_sink_template);
gst_element_class_set_static_metadata (gstelement_class,
"RTP audio payloader", "Codec/Payloader/Network/RTP",
diff --git a/gst/rtp/gstrtpac3depay.c b/gst/rtp/gstrtpac3depay.c
index b9df488e5..50342c8d7 100644
--- a/gst/rtp/gstrtpac3depay.c
+++ b/gst/rtp/gstrtpac3depay.c
@@ -80,10 +80,10 @@ gst_rtp_ac3_depay_class_init (GstRtpAC3DepayClass * klass)
gstelement_class = (GstElementClass *) klass;
gstrtpbasedepayload_class = (GstRTPBaseDepayloadClass *) klass;
- gst_element_class_add_pad_template (gstelement_class,
- gst_static_pad_template_get (&gst_rtp_ac3_depay_src_template));
- gst_element_class_add_pad_template (gstelement_class,
- gst_static_pad_template_get (&gst_rtp_ac3_depay_sink_template));
+ gst_element_class_add_static_pad_template (gstelement_class,
+ &gst_rtp_ac3_depay_src_template);
+ gst_element_class_add_static_pad_template (gstelement_class,
+ &gst_rtp_ac3_depay_sink_template);
gst_element_class_set_static_metadata (gstelement_class,
"RTP AC3 depayloader", "Codec/Depayloader/Network/RTP",
diff --git a/gst/rtp/gstrtpac3pay.c b/gst/rtp/gstrtpac3pay.c
index 986589494..021016def 100644
--- a/gst/rtp/gstrtpac3pay.c
+++ b/gst/rtp/gstrtpac3pay.c
@@ -100,10 +100,10 @@ gst_rtp_ac3_pay_class_init (GstRtpAC3PayClass * klass)
gstelement_class->change_state = gst_rtp_ac3_pay_change_state;
- gst_element_class_add_pad_template (gstelement_class,
- gst_static_pad_template_get (&gst_rtp_ac3_pay_src_template));
- gst_element_class_add_pad_template (gstelement_class,
- gst_static_pad_template_get (&gst_rtp_ac3_pay_sink_template));
+ gst_element_class_add_static_pad_template (gstelement_class,
+ &gst_rtp_ac3_pay_src_template);
+ gst_element_class_add_static_pad_template (gstelement_class,
+ &gst_rtp_ac3_pay_sink_template);
gst_element_class_set_static_metadata (gstelement_class,
"RTP AC3 audio payloader", "Codec/Payloader/Network/RTP",
diff --git a/gst/rtp/gstrtpamrdepay.c b/gst/rtp/gstrtpamrdepay.c
index 60439f711..1c87a1a6e 100644
--- a/gst/rtp/gstrtpamrdepay.c
+++ b/gst/rtp/gstrtpamrdepay.c
@@ -140,10 +140,10 @@ gst_rtp_amr_depay_class_init (GstRtpAMRDepayClass * klass)
gstelement_class = (GstElementClass *) klass;
gstrtpbasedepayload_class = (GstRTPBaseDepayloadClass *) klass;
- gst_element_class_add_pad_template (gstelement_class,
- gst_static_pad_template_get (&gst_rtp_amr_depay_src_template));
- gst_element_class_add_pad_template (gstelement_class,
- gst_static_pad_template_get (&gst_rtp_amr_depay_sink_template));
+ gst_element_class_add_static_pad_template (gstelement_class,
+ &gst_rtp_amr_depay_src_template);
+ gst_element_class_add_static_pad_template (gstelement_class,
+ &gst_rtp_amr_depay_sink_template);
gst_element_class_set_static_metadata (gstelement_class,
"RTP AMR depayloader", "Codec/Depayloader/Network/RTP",
diff --git a/gst/rtp/gstrtpamrpay.c b/gst/rtp/gstrtpamrpay.c
index f4849a8c6..300be8f80 100644
--- a/gst/rtp/gstrtpamrpay.c
+++ b/gst/rtp/gstrtpamrpay.c
@@ -125,10 +125,10 @@ gst_rtp_amr_pay_class_init (GstRtpAMRPayClass * klass)
gstelement_class->change_state = gst_rtp_amr_pay_change_state;
- gst_element_class_add_pad_template (gstelement_class,
- gst_static_pad_template_get (&gst_rtp_amr_pay_src_template));
- gst_element_class_add_pad_template (gstelement_class,
- gst_static_pad_template_get (&gst_rtp_amr_pay_sink_template));
+ gst_element_class_add_static_pad_template (gstelement_class,
+ &gst_rtp_amr_pay_src_template);
+ gst_element_class_add_static_pad_template (gstelement_class,
+ &gst_rtp_amr_pay_sink_template);
gst_element_class_set_static_metadata (gstelement_class, "RTP AMR payloader",
"Codec/Payloader/Network/RTP",
diff --git a/gst/rtp/gstrtpbvdepay.c b/gst/rtp/gstrtpbvdepay.c
index 6b7bb18b5..0482382b4 100644
--- a/gst/rtp/gstrtpbvdepay.c
+++ b/gst/rtp/gstrtpbvdepay.c
@@ -74,10 +74,10 @@ gst_rtp_bv_depay_class_init (GstRTPBVDepayClass * klass)
gstelement_class = (GstElementClass *) klass;
gstrtpbasedepayload_class = (GstRTPBaseDepayloadClass *) klass;
- gst_element_class_add_pad_template (gstelement_class,
- gst_static_pad_template_get (&gst_rtp_bv_depay_src_template));
- gst_element_class_add_pad_template (gstelement_class,
- gst_static_pad_template_get (&gst_rtp_bv_depay_sink_template));
+ gst_element_class_add_static_pad_template (gstelement_class,
+ &gst_rtp_bv_depay_src_template);
+ gst_element_class_add_static_pad_template (gstelement_class,
+ &gst_rtp_bv_depay_sink_template);
gst_element_class_set_static_metadata (gstelement_class,
"RTP BroadcomVoice depayloader", "Codec/Depayloader/Network/RTP",
diff --git a/gst/rtp/gstrtpbvpay.c b/gst/rtp/gstrtpbvpay.c
index 15a7b7f85..929268138 100644
--- a/gst/rtp/gstrtpbvpay.c
+++ b/gst/rtp/gstrtpbvpay.c
@@ -81,10 +81,10 @@ gst_rtp_bv_pay_class_init (GstRTPBVPayClass * klass)
gstelement_class = (GstElementClass *) klass;
gstrtpbasepayload_class = (GstRTPBasePayloadClass *) klass;
- gst_element_class_add_pad_template (gstelement_class,
- gst_static_pad_template_get (&gst_rtp_bv_pay_sink_template));
- gst_element_class_add_pad_template (gstelement_class,
- gst_static_pad_template_get (&gst_rtp_bv_pay_src_template));
+ gst_element_class_add_static_pad_template (gstelement_class,
+ &gst_rtp_bv_pay_sink_template);
+ gst_element_class_add_static_pad_template (gstelement_class,
+ &gst_rtp_bv_pay_src_template);
gst_element_class_set_static_metadata (gstelement_class, "RTP BV Payloader",
"Codec/Payloader/Network/RTP",
diff --git a/gst/rtp/gstrtpceltdepay.c b/gst/rtp/gstrtpceltdepay.c
index ed5b3ae94..3234c141f 100644
--- a/gst/rtp/gstrtpceltdepay.c
+++ b/gst/rtp/gstrtpceltdepay.c
@@ -87,10 +87,10 @@ gst_rtp_celt_depay_class_init (GstRtpCELTDepayClass * klass)
gstelement_class = (GstElementClass *) klass;
gstrtpbasedepayload_class = (GstRTPBaseDepayloadClass *) klass;
- gst_element_class_add_pad_template (gstelement_class,
- gst_static_pad_template_get (&gst_rtp_celt_depay_src_template));
- gst_element_class_add_pad_template (gstelement_class,
- gst_static_pad_template_get (&gst_rtp_celt_depay_sink_template));
+ gst_element_class_add_static_pad_template (gstelement_class,
+ &gst_rtp_celt_depay_src_template);
+ gst_element_class_add_static_pad_template (gstelement_class,
+ &gst_rtp_celt_depay_sink_template);
gst_element_class_set_static_metadata (gstelement_class,
"RTP CELT depayloader", "Codec/Depayloader/Network/RTP",
diff --git a/gst/rtp/gstrtpceltpay.c b/gst/rtp/gstrtpceltpay.c
index 6f16ba202..db2ebff9f 100644
--- a/gst/rtp/gstrtpceltpay.c
+++ b/gst/rtp/gstrtpceltpay.c
@@ -85,10 +85,10 @@ gst_rtp_celt_pay_class_init (GstRtpCELTPayClass * klass)
gstelement_class->change_state = gst_rtp_celt_pay_change_state;
- gst_element_class_add_pad_template (gstelement_class,
- gst_static_pad_template_get (&gst_rtp_celt_pay_sink_template));
- gst_element_class_add_pad_template (gstelement_class,
- gst_static_pad_template_get (&gst_rtp_celt_pay_src_template));
+ gst_element_class_add_static_pad_template (gstelement_class,
+ &gst_rtp_celt_pay_sink_template);
+ gst_element_class_add_static_pad_template (gstelement_class,
+ &gst_rtp_celt_pay_src_template);
gst_element_class_set_static_metadata (gstelement_class, "RTP CELT payloader",
"Codec/Payloader/Network/RTP",
diff --git a/gst/rtp/gstrtpdvdepay.c b/gst/rtp/gstrtpdvdepay.c
index eca969c33..0235b7145 100644
--- a/gst/rtp/gstrtpdvdepay.c
+++ b/gst/rtp/gstrtpdvdepay.c
@@ -97,10 +97,8 @@ gst_rtp_dv_depay_class_init (GstRTPDVDepayClass * klass)
gstelement_class->change_state =
GST_DEBUG_FUNCPTR (gst_rtp_dv_depay_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, "RTP DV Depayloader",
"Codec/Depayloader/Network/RTP",
diff --git a/gst/rtp/gstrtpdvpay.c b/gst/rtp/gstrtpdvpay.c
index ddda67e68..440880638 100644
--- a/gst/rtp/gstrtpdvpay.c
+++ b/gst/rtp/gstrtpdvpay.c
@@ -120,10 +120,10 @@ gst_rtp_dv_pay_class_init (GstRTPDVPayClass * klass)
GST_TYPE_DV_PAY_MODE, DEFAULT_MODE,
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
- gst_element_class_add_pad_template (gstelement_class,
- gst_static_pad_template_get (&gst_rtp_dv_pay_sink_template));
- gst_element_class_add_pad_template (gstelement_class,
- gst_static_pad_template_get (&gst_rtp_dv_pay_src_template));
+ gst_element_class_add_static_pad_template (gstelement_class,
+ &gst_rtp_dv_pay_sink_template);
+ gst_element_class_add_static_pad_template (gstelement_class,
+ &gst_rtp_dv_pay_src_template);
gst_element_class_set_static_metadata (gstelement_class, "RTP DV Payloader",
"Codec/Payloader/Network/RTP",
diff --git a/gst/rtp/gstrtpg722depay.c b/gst/rtp/gstrtpg722depay.c
index 31c6ab4f3..846251e06 100644
--- a/gst/rtp/gstrtpg722depay.c
+++ b/gst/rtp/gstrtpg722depay.c
@@ -81,10 +81,10 @@ gst_rtp_g722_depay_class_init (GstRtpG722DepayClass * klass)
gstelement_class = (GstElementClass *) klass;
gstrtpbasedepayload_class = (GstRTPBaseDepayloadClass *) klass;
- gst_element_class_add_pad_template (gstelement_class,
- gst_static_pad_template_get (&gst_rtp_g722_depay_src_template));
- gst_element_class_add_pad_template (gstelement_class,
- gst_static_pad_template_get (&gst_rtp_g722_depay_sink_template));
+ gst_element_class_add_static_pad_template (gstelement_class,
+ &gst_rtp_g722_depay_src_template);
+ gst_element_class_add_static_pad_template (gstelement_class,
+ &gst_rtp_g722_depay_sink_template);
gst_element_class_set_static_metadata (gstelement_class,
"RTP audio depayloader", "Codec/Depayloader/Network/RTP",
diff --git a/gst/rtp/gstrtpg722pay.c b/gst/rtp/gstrtpg722pay.c
index 79194c0e7..eb88c3cce 100644
--- a/gst/rtp/gstrtpg722pay.c
+++ b/gst/rtp/gstrtpg722pay.c
@@ -76,10 +76,10 @@ gst_rtp_g722_pay_class_init (GstRtpG722PayClass * klass)
gstelement_class = (GstElementClass *) klass;
gstrtpbasepayload_class = (GstRTPBasePayloadClass *) klass;
- gst_element_class_add_pad_template (gstelement_class,
- gst_static_pad_template_get (&gst_rtp_g722_pay_src_template));
- gst_element_class_add_pad_template (gstelement_class,
- gst_static_pad_template_get (&gst_rtp_g722_pay_sink_template));
+ gst_element_class_add_static_pad_template (gstelement_class,
+ &gst_rtp_g722_pay_src_template);
+ gst_element_class_add_static_pad_template (gstelement_class,
+ &gst_rtp_g722_pay_sink_template);
gst_element_class_set_static_metadata (gstelement_class,
"RTP audio payloader", "Codec/Payloader/Network/RTP",
diff --git a/gst/rtp/gstrtpg723depay.c b/gst/rtp/gstrtpg723depay.c
index c66473c5c..901d9ae06 100644
--- a/gst/rtp/gstrtpg723depay.c
+++ b/gst/rtp/gstrtpg723depay.c
@@ -93,10 +93,10 @@ gst_rtp_g723_depay_class_init (GstRtpG723DepayClass * klass)
gstelement_class = (GstElementClass *) klass;
gstrtpbasedepayload_class = (GstRTPBaseDepayloadClass *) klass;
- gst_element_class_add_pad_template (gstelement_class,
- gst_static_pad_template_get (&gst_rtp_g723_depay_src_template));
- gst_element_class_add_pad_template (gstelement_class,
- gst_static_pad_template_get (&gst_rtp_g723_depay_sink_template));
+ gst_element_class_add_static_pad_template (gstelement_class,
+ &gst_rtp_g723_depay_src_template);
+ gst_element_class_add_static_pad_template (gstelement_class,
+ &gst_rtp_g723_depay_sink_template);
gst_element_class_set_static_metadata (gstelement_class,
"RTP G.723 depayloader", "Codec/Depayloader/Network/RTP",
diff --git a/gst/rtp/gstrtpg723pay.c b/gst/rtp/gstrtpg723pay.c
index 0937c854a..2612218a3 100644
--- a/gst/rtp/gstrtpg723pay.c
+++ b/gst/rtp/gstrtpg723pay.c
@@ -84,10 +84,10 @@ gst_rtp_g723_pay_class_init (GstRTPG723PayClass * klass)
gstelement_class->change_state = gst_rtp_g723_pay_change_state;
- gst_element_class_add_pad_template (gstelement_class,
- gst_static_pad_template_get (&gst_rtp_g723_pay_sink_template));
- gst_element_class_add_pad_template (gstelement_class,
- gst_static_pad_template_get (&gst_rtp_g723_pay_src_template));
+ gst_element_class_add_static_pad_template (gstelement_class,
+ &gst_rtp_g723_pay_sink_template);
+ gst_element_class_add_static_pad_template (gstelement_class,
+ &gst_rtp_g723_pay_src_template);
gst_element_class_set_static_metadata (gstelement_class,
"RTP G.723 payloader", "Codec/Payloader/Network/RTP",
diff --git a/gst/rtp/gstrtpg726depay.c b/gst/rtp/gstrtpg726depay.c
index efaadea5f..4bedb7eeb 100644
--- a/gst/rtp/gstrtpg726depay.c
+++ b/gst/rtp/gstrtpg726depay.c
@@ -114,10 +114,10 @@ gst_rtp_g726_depay_class_init (GstRtpG726DepayClass * klass)
"Force AAL2 decoding for compatibility with bad payloaders",
DEFAULT_FORCE_AAL2, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
- gst_element_class_add_pad_template (gstelement_class,
- gst_static_pad_template_get (&gst_rtp_g726_depay_src_template));
- gst_element_class_add_pad_template (gstelement_class,
- gst_static_pad_template_get (&gst_rtp_g726_depay_sink_template));
+ gst_element_class_add_static_pad_template (gstelement_class,
+ &gst_rtp_g726_depay_src_template);
+ gst_element_class_add_static_pad_template (gstelement_class,
+ &gst_rtp_g726_depay_sink_template);
gst_element_class_set_static_metadata (gstelement_class,
"RTP G.726 depayloader", "Codec/Depayloader/Network/RTP",
diff --git a/gst/rtp/gstrtpg726pay.c b/gst/rtp/gstrtpg726pay.c
index 7c7e9a826..09bfb5d51 100644
--- a/gst/rtp/gstrtpg726pay.c
+++ b/gst/rtp/gstrtpg726pay.c
@@ -97,10 +97,10 @@ gst_rtp_g726_pay_class_init (GstRtpG726PayClass * klass)
"Force AAL2 encoding for compatibility with bad depayloaders",
DEFAULT_FORCE_AAL2, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
- gst_element_class_add_pad_template (gstelement_class,
- gst_static_pad_template_get (&gst_rtp_g726_pay_sink_template));
- gst_element_class_add_pad_template (gstelement_class,
- gst_static_pad_template_get (&gst_rtp_g726_pay_src_template));
+ gst_element_class_add_static_pad_template (gstelement_class,
+ &gst_rtp_g726_pay_sink_template);
+ gst_element_class_add_static_pad_template (gstelement_class,
+ &gst_rtp_g726_pay_src_template);
gst_element_class_set_static_metadata (gstelement_class,
"RTP G.726 payloader", "Codec/Payloader/Network/RTP",
diff --git a/gst/rtp/gstrtpg729depay.c b/gst/rtp/gstrtpg729depay.c
index 56f921a0d..065da2860 100644
--- a/gst/rtp/gstrtpg729depay.c
+++ b/gst/rtp/gstrtpg729depay.c
@@ -93,10 +93,10 @@ gst_rtp_g729_depay_class_init (GstRtpG729DepayClass * klass)
gstelement_class = (GstElementClass *) klass;
gstrtpbasedepayload_class = (GstRTPBaseDepayloadClass *) klass;
- gst_element_class_add_pad_template (gstelement_class,
- gst_static_pad_template_get (&gst_rtp_g729_depay_src_template));
- gst_element_class_add_pad_template (gstelement_class,
- gst_static_pad_template_get (&gst_rtp_g729_depay_sink_template));
+ gst_element_class_add_static_pad_template (gstelement_class,
+ &gst_rtp_g729_depay_src_template);
+ gst_element_class_add_static_pad_template (gstelement_class,
+ &gst_rtp_g729_depay_sink_template);
gst_element_class_set_static_metadata (gstelement_class,
"RTP G.729 depayloader", "Codec/Depayloader/Network/RTP",
diff --git a/gst/rtp/gstrtpg729pay.c b/gst/rtp/gstrtpg729pay.c
index ad89734a0..f327c8c7e 100644
--- a/gst/rtp/gstrtpg729pay.c
+++ b/gst/rtp/gstrtpg729pay.c
@@ -103,10 +103,10 @@ gst_rtp_g729_pay_class_init (GstRTPG729PayClass * klass)
gstelement_class->change_state = gst_rtp_g729_pay_change_state;
- gst_element_class_add_pad_template (gstelement_class,
- gst_static_pad_template_get (&gst_rtp_g729_pay_sink_template));
- gst_element_class_add_pad_template (gstelement_class,
- gst_static_pad_template_get (&gst_rtp_g729_pay_src_template));
+ gst_element_class_add_static_pad_template (gstelement_class,
+ &gst_rtp_g729_pay_sink_template);
+ gst_element_class_add_static_pad_template (gstelement_class,
+ &gst_rtp_g729_pay_src_template);
gst_element_class_set_static_metadata (gstelement_class,
"RTP G.729 payloader", "Codec/Payloader/Network/RTP",
diff --git a/gst/rtp/gstrtpgsmdepay.c b/gst/rtp/gstrtpgsmdepay.c
index 7b781e26c..ddde3f0e6 100644
--- a/gst/rtp/gstrtpgsmdepay.c
+++ b/gst/rtp/gstrtpgsmdepay.c
@@ -75,10 +75,10 @@ gst_rtp_gsm_depay_class_init (GstRTPGSMDepayClass * klass)
gstelement_class = (GstElementClass *) klass;
gstrtpbase_depayload_class = (GstRTPBaseDepayloadClass *) klass;
- gst_element_class_add_pad_template (gstelement_class,
- gst_static_pad_template_get (&gst_rtp_gsm_depay_src_template));
- gst_element_class_add_pad_template (gstelement_class,
- gst_static_pad_template_get (&gst_rtp_gsm_depay_sink_template));
+ gst_element_class_add_static_pad_template (gstelement_class,
+ &gst_rtp_gsm_depay_src_template);
+ gst_element_class_add_static_pad_template (gstelement_class,
+ &gst_rtp_gsm_depay_sink_template);
gst_element_class_set_static_metadata (gstelement_class,
"RTP GSM depayloader", "Codec/Depayloader/Network/RTP",
diff --git a/gst/rtp/gstrtpgsmpay.c b/gst/rtp/gstrtpgsmpay.c
index 56c72b6ae..93888d795 100644
--- a/gst/rtp/gstrtpgsmpay.c
+++ b/gst/rtp/gstrtpgsmpay.c
@@ -74,10 +74,10 @@ gst_rtp_gsm_pay_class_init (GstRTPGSMPayClass * klass)
gstelement_class = (GstElementClass *) klass;
gstrtpbasepayload_class = (GstRTPBasePayloadClass *) klass;
- gst_element_class_add_pad_template (gstelement_class,
- gst_static_pad_template_get (&gst_rtp_gsm_pay_sink_template));
- gst_element_class_add_pad_template (gstelement_class,
- gst_static_pad_template_get (&gst_rtp_gsm_pay_src_template));
+ gst_element_class_add_static_pad_template (gstelement_class,
+ &gst_rtp_gsm_pay_sink_template);
+ gst_element_class_add_static_pad_template (gstelement_class,
+ &gst_rtp_gsm_pay_src_template);
gst_element_class_set_static_metadata (gstelement_class, "RTP GSM payloader",
"Codec/Payloader/Network/RTP",
diff --git a/gst/rtp/gstrtpgstdepay.c b/gst/rtp/gstrtpgstdepay.c
index 5c1476a62..7d057428d 100644
--- a/gst/rtp/gstrtpgstdepay.c
+++ b/gst/rtp/gstrtpgstdepay.c
@@ -80,10 +80,10 @@ gst_rtp_gst_depay_class_init (GstRtpGSTDepayClass * klass)
gstelement_class->change_state = gst_rtp_gst_depay_change_state;
- gst_element_class_add_pad_template (gstelement_class,
- gst_static_pad_template_get (&gst_rtp_gst_depay_src_template));
- gst_element_class_add_pad_template (gstelement_class,
- gst_static_pad_template_get (&gst_rtp_gst_depay_sink_template));
+ gst_element_class_add_static_pad_template (gstelement_class,
+ &gst_rtp_gst_depay_src_template);
+ gst_element_class_add_static_pad_template (gstelement_class,
+ &gst_rtp_gst_depay_sink_template);
gst_element_class_set_static_metadata (gstelement_class,
"GStreamer depayloader", "Codec/Depayloader/Network",
diff --git a/gst/rtp/gstrtpgstpay.c b/gst/rtp/gstrtpgstpay.c
index 20076fba5..f5511f4df 100644
--- a/gst/rtp/gstrtpgstpay.c
+++ b/gst/rtp/gstrtpgstpay.c
@@ -126,10 +126,10 @@ gst_rtp_gst_pay_class_init (GstRtpGSTPayClass * klass)
gstelement_class->change_state = gst_rtp_gst_pay_change_state;
- gst_element_class_add_pad_template (gstelement_class,
- gst_static_pad_template_get (&gst_rtp_gst_pay_src_template));
- gst_element_class_add_pad_template (gstelement_class,
- gst_static_pad_template_get (&gst_rtp_gst_pay_sink_template));
+ gst_element_class_add_static_pad_template (gstelement_class,
+ &gst_rtp_gst_pay_src_template);
+ gst_element_class_add_static_pad_template (gstelement_class,
+ &gst_rtp_gst_pay_sink_template);
gst_element_class_set_static_metadata (gstelement_class,
"RTP GStreamer payloader", "Codec/Payloader/Network/RTP",
diff --git a/gst/rtp/gstrtph261depay.c b/gst/rtp/gstrtph261depay.c
index d50ff1c2c..1f99bd46e 100644
--- a/gst/rtp/gstrtph261depay.c
+++ b/gst/rtp/gstrtph261depay.c
@@ -259,10 +259,10 @@ gst_rtp_h261_depay_class_init (GstRtpH261DepayClass * klass)
gstelement_class = GST_ELEMENT_CLASS (klass);
gstrtpbasedepayload_class = GST_RTP_BASE_DEPAYLOAD_CLASS (klass);
- gst_element_class_add_pad_template (gstelement_class,
- gst_static_pad_template_get (&gst_rtp_h261_depay_src_template));
- gst_element_class_add_pad_template (gstelement_class,
- gst_static_pad_template_get (&gst_rtp_h261_depay_sink_template));
+ gst_element_class_add_static_pad_template (gstelement_class,
+ &gst_rtp_h261_depay_src_template);
+ gst_element_class_add_static_pad_template (gstelement_class,
+ &gst_rtp_h261_depay_sink_template);
gst_element_class_set_static_metadata (gstelement_class,
"RTP H261 depayloader", "Codec/Depayloader/Network/RTP",
diff --git a/gst/rtp/gstrtph261pay.c b/gst/rtp/gstrtph261pay.c
index ebcf80e4a..4b040be10 100644
--- a/gst/rtp/gstrtph261pay.c
+++ b/gst/rtp/gstrtph261pay.c
@@ -1047,10 +1047,10 @@ gst_rtp_h261_pay_class_init (GstRtpH261PayClass * klass)
element_class = GST_ELEMENT_CLASS (klass);
gstrtpbasepayload_class = GST_RTP_BASE_PAYLOAD_CLASS (klass);
- gst_element_class_add_pad_template (element_class,
- gst_static_pad_template_get (&gst_rtp_h261_pay_src_template));
- gst_element_class_add_pad_template (element_class,
- gst_static_pad_template_get (&gst_rtp_h261_pay_sink_template));
+ gst_element_class_add_static_pad_template (element_class,
+ &gst_rtp_h261_pay_src_template);
+ gst_element_class_add_static_pad_template (element_class,
+ &gst_rtp_h261_pay_sink_template);
gst_element_class_set_static_metadata (element_class,
"RTP H261 packet payloader", "Codec/Payloader/Network/RTP",
diff --git a/gst/rtp/gstrtph263depay.c b/gst/rtp/gstrtph263depay.c
index 4b31b9e62..0f1bed7e5 100644
--- a/gst/rtp/gstrtph263depay.c
+++ b/gst/rtp/gstrtph263depay.c
@@ -101,10 +101,10 @@ gst_rtp_h263_depay_class_init (GstRtpH263DepayClass * klass)
gstelement_class->change_state = gst_rtp_h263_depay_change_state;
- gst_element_class_add_pad_template (gstelement_class,
- gst_static_pad_template_get (&gst_rtp_h263_depay_src_template));
- gst_element_class_add_pad_template (gstelement_class,
- gst_static_pad_template_get (&gst_rtp_h263_depay_sink_template));
+ gst_element_class_add_static_pad_template (gstelement_class,
+ &gst_rtp_h263_depay_src_template);
+ gst_element_class_add_static_pad_template (gstelement_class,
+ &gst_rtp_h263_depay_sink_template);
gst_element_class_set_static_metadata (gstelement_class,
"RTP H263 depayloader", "Codec/Depayloader/Network/RTP",
diff --git a/gst/rtp/gstrtph263pay.c b/gst/rtp/gstrtph263pay.c
index f60721a55..639471069 100644
--- a/gst/rtp/gstrtph263pay.c
+++ b/gst/rtp/gstrtph263pay.c
@@ -424,10 +424,10 @@ gst_rtp_h263_pay_class_init (GstRtpH263PayClass * klass)
"Disable packetization modes B and C", DEFAULT_MODE_A,
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
- gst_element_class_add_pad_template (gstelement_class,
- gst_static_pad_template_get (&gst_rtp_h263_pay_src_template));
- gst_element_class_add_pad_template (gstelement_class,
- gst_static_pad_template_get (&gst_rtp_h263_pay_sink_template));
+ gst_element_class_add_static_pad_template (gstelement_class,
+ &gst_rtp_h263_pay_src_template);
+ gst_element_class_add_static_pad_template (gstelement_class,
+ &gst_rtp_h263_pay_sink_template);
gst_element_class_set_static_metadata (gstelement_class,
"RTP H263 packet payloader", "Codec/Payloader/Network/RTP",
diff --git a/gst/rtp/gstrtph263pdepay.c b/gst/rtp/gstrtph263pdepay.c
index 6aea8e1a1..dbfcb66b7 100644
--- a/gst/rtp/gstrtph263pdepay.c
+++ b/gst/rtp/gstrtph263pdepay.c
@@ -110,10 +110,10 @@ gst_rtp_h263p_depay_class_init (GstRtpH263PDepayClass * klass)
gstelement_class->change_state = gst_rtp_h263p_depay_change_state;
- gst_element_class_add_pad_template (gstelement_class,
- gst_static_pad_template_get (&gst_rtp_h263p_depay_src_template));
- gst_element_class_add_pad_template (gstelement_class,
- gst_static_pad_template_get (&gst_rtp_h263p_depay_sink_template));
+ gst_element_class_add_static_pad_template (gstelement_class,
+ &gst_rtp_h263p_depay_src_template);
+ gst_element_class_add_static_pad_template (gstelement_class,
+ &gst_rtp_h263p_depay_sink_template);
gst_element_class_set_static_metadata (gstelement_class,
"RTP H263 depayloader", "Codec/Depayloader/Network/RTP",
diff --git a/gst/rtp/gstrtph263ppay.c b/gst/rtp/gstrtph263ppay.c
index 9c09ad0b6..844d3f7cc 100644
--- a/gst/rtp/gstrtph263ppay.c
+++ b/gst/rtp/gstrtph263ppay.c
@@ -139,10 +139,10 @@ gst_rtp_h263p_pay_class_init (GstRtpH263PPayClass * klass)
DEFAULT_FRAGMENTATION_MODE,
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
- gst_element_class_add_pad_template (gstelement_class,
- gst_static_pad_template_get (&gst_rtp_h263p_pay_src_template));
- gst_element_class_add_pad_template (gstelement_class,
- gst_static_pad_template_get (&gst_rtp_h263p_pay_sink_template));
+ gst_element_class_add_static_pad_template (gstelement_class,
+ &gst_rtp_h263p_pay_src_template);
+ gst_element_class_add_static_pad_template (gstelement_class,
+ &gst_rtp_h263p_pay_sink_template);
gst_element_class_set_static_metadata (gstelement_class, "RTP H263 payloader",
"Codec/Payloader/Network/RTP",
diff --git a/gst/rtp/gstrtph264depay.c b/gst/rtp/gstrtph264depay.c
index 57ed5248b..430650e7c 100644
--- a/gst/rtp/gstrtph264depay.c
+++ b/gst/rtp/gstrtph264depay.c
@@ -107,10 +107,10 @@ gst_rtp_h264_depay_class_init (GstRtpH264DepayClass * klass)
gobject_class->finalize = gst_rtp_h264_depay_finalize;
- gst_element_class_add_pad_template (gstelement_class,
- gst_static_pad_template_get (&gst_rtp_h264_depay_src_template));
- gst_element_class_add_pad_template (gstelement_class,
- gst_static_pad_template_get (&gst_rtp_h264_depay_sink_template));
+ gst_element_class_add_static_pad_template (gstelement_class,
+ &gst_rtp_h264_depay_src_template);
+ gst_element_class_add_static_pad_template (gstelement_class,
+ &gst_rtp_h264_depay_sink_template);
gst_element_class_set_static_metadata (gstelement_class,
"RTP H264 depayloader", "Codec/Depayloader/Network/RTP",
diff --git a/gst/rtp/gstrtph264pay.c b/gst/rtp/gstrtph264pay.c
index c8100ec46..9f8d8cb45 100644
--- a/gst/rtp/gstrtph264pay.c
+++ b/gst/rtp/gstrtph264pay.c
@@ -135,10 +135,10 @@ gst_rtp_h264_pay_class_init (GstRtpH264PayClass * klass)
gobject_class->finalize = gst_rtp_h264_pay_finalize;
- gst_element_class_add_pad_template (gstelement_class,
- gst_static_pad_template_get (&gst_rtp_h264_pay_src_template));
- gst_element_class_add_pad_template (gstelement_class,
- gst_static_pad_template_get (&gst_rtp_h264_pay_sink_template));
+ gst_element_class_add_static_pad_template (gstelement_class,
+ &gst_rtp_h264_pay_src_template);
+ gst_element_class_add_static_pad_template (gstelement_class,
+ &gst_rtp_h264_pay_sink_template);
gst_element_class_set_static_metadata (gstelement_class, "RTP H264 payloader",
"Codec/Payloader/Network/RTP",
diff --git a/gst/rtp/gstrtph265depay.c b/gst/rtp/gstrtph265depay.c
index eb0c2b7f7..51819088e 100644
--- a/gst/rtp/gstrtph265depay.c
+++ b/gst/rtp/gstrtph265depay.c
@@ -124,10 +124,10 @@ gst_rtp_h265_depay_class_init (GstRtpH265DepayClass * klass)
gobject_class->finalize = gst_rtp_h265_depay_finalize;
- gst_element_class_add_pad_template (gstelement_class,
- gst_static_pad_template_get (&gst_rtp_h265_depay_src_template));
- gst_element_class_add_pad_template (gstelement_class,
- gst_static_pad_template_get (&gst_rtp_h265_depay_sink_template));
+ gst_element_class_add_static_pad_template (gstelement_class,
+ &gst_rtp_h265_depay_src_template);
+ gst_element_class_add_static_pad_template (gstelement_class,
+ &gst_rtp_h265_depay_sink_template);
gst_element_class_set_static_metadata (gstelement_class,
"RTP H265 depayloader", "Codec/Depayloader/Network/RTP",
diff --git a/gst/rtp/gstrtph265pay.c b/gst/rtp/gstrtph265pay.c
index dceb61ecc..3dc9b8f29 100644
--- a/gst/rtp/gstrtph265pay.c
+++ b/gst/rtp/gstrtph265pay.c
@@ -170,10 +170,10 @@ gst_rtp_h265_pay_class_init (GstRtpH265PayClass * klass)
gobject_class->finalize = gst_rtp_h265_pay_finalize;
- gst_element_class_add_pad_template (gstelement_class,
- gst_static_pad_template_get (&gst_rtp_h265_pay_src_template));
- gst_element_class_add_pad_template (gstelement_class,
- gst_static_pad_template_get (&gst_rtp_h265_pay_sink_template));
+ gst_element_class_add_static_pad_template (gstelement_class,
+ &gst_rtp_h265_pay_src_template);
+ gst_element_class_add_static_pad_template (gstelement_class,
+ &gst_rtp_h265_pay_sink_template);
gst_element_class_set_static_metadata (gstelement_class, "RTP H265 payloader",
"Codec/Payloader/Network/RTP",
diff --git a/gst/rtp/gstrtpilbcdepay.c b/gst/rtp/gstrtpilbcdepay.c
index 9af6d2942..3df87d8b0 100644
--- a/gst/rtp/gstrtpilbcdepay.c
+++ b/gst/rtp/gstrtpilbcdepay.c
@@ -112,10 +112,10 @@ gst_rtp_ilbc_depay_class_init (GstRTPiLBCDepayClass * klass)
GST_TYPE_ILBC_MODE, DEFAULT_MODE,
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
- gst_element_class_add_pad_template (gstelement_class,
- gst_static_pad_template_get (&gst_rtp_ilbc_depay_src_template));
- gst_element_class_add_pad_template (gstelement_class,
- gst_static_pad_template_get (&gst_rtp_ilbc_depay_sink_template));
+ gst_element_class_add_static_pad_template (gstelement_class,
+ &gst_rtp_ilbc_depay_src_template);
+ gst_element_class_add_static_pad_template (gstelement_class,
+ &gst_rtp_ilbc_depay_sink_template);
gst_element_class_set_static_metadata (gstelement_class,
"RTP iLBC depayloader", "Codec/Depayloader/Network/RTP",
diff --git a/gst/rtp/gstrtpilbcpay.c b/gst/rtp/gstrtpilbcpay.c
index 7d6ea280b..83161ffaf 100644
--- a/gst/rtp/gstrtpilbcpay.c
+++ b/gst/rtp/gstrtpilbcpay.c
@@ -69,10 +69,10 @@ gst_rtp_ilbc_pay_class_init (GstRTPILBCPayClass * klass)
gstelement_class = (GstElementClass *) klass;
gstrtpbasepayload_class = (GstRTPBasePayloadClass *) klass;
- gst_element_class_add_pad_template (gstelement_class,
- gst_static_pad_template_get (&gst_rtp_ilbc_pay_sink_template));
- gst_element_class_add_pad_template (gstelement_class,
- gst_static_pad_template_get (&gst_rtp_ilbc_pay_src_template));
+ gst_element_class_add_static_pad_template (gstelement_class,
+ &gst_rtp_ilbc_pay_sink_template);
+ gst_element_class_add_static_pad_template (gstelement_class,
+ &gst_rtp_ilbc_pay_src_template);
gst_element_class_set_static_metadata (gstelement_class, "RTP iLBC Payloader",
"Codec/Payloader/Network/RTP",
diff --git a/gst/rtp/gstrtpj2kdepay.c b/gst/rtp/gstrtpj2kdepay.c
index f132811e9..f6294195a 100644
--- a/gst/rtp/gstrtpj2kdepay.c
+++ b/gst/rtp/gstrtpj2kdepay.c
@@ -98,10 +98,10 @@ gst_rtp_j2k_depay_class_init (GstRtpJ2KDepayClass * klass)
gobject_class->set_property = gst_rtp_j2k_depay_set_property;
gobject_class->get_property = gst_rtp_j2k_depay_get_property;
- gst_element_class_add_pad_template (gstelement_class,
- gst_static_pad_template_get (&gst_rtp_j2k_depay_src_template));
- gst_element_class_add_pad_template (gstelement_class,
- gst_static_pad_template_get (&gst_rtp_j2k_depay_sink_template));
+ gst_element_class_add_static_pad_template (gstelement_class,
+ &gst_rtp_j2k_depay_src_template);
+ gst_element_class_add_static_pad_template (gstelement_class,
+ &gst_rtp_j2k_depay_sink_template);
gst_element_class_set_static_metadata (gstelement_class,
"RTP JPEG 2000 depayloader", "Codec/Depayloader/Network/RTP",
diff --git a/gst/rtp/gstrtpj2kpay.c b/gst/rtp/gstrtpj2kpay.c
index 2791ef453..ee4da0308 100644
--- a/gst/rtp/gstrtpj2kpay.c
+++ b/gst/rtp/gstrtpj2kpay.c
@@ -127,10 +127,10 @@ gst_rtp_j2k_pay_class_init (GstRtpJ2KPayClass * klass)
gobject_class->set_property = gst_rtp_j2k_pay_set_property;
gobject_class->get_property = gst_rtp_j2k_pay_get_property;
- gst_element_class_add_pad_template (gstelement_class,
- gst_static_pad_template_get (&gst_rtp_j2k_pay_src_template));
- gst_element_class_add_pad_template (gstelement_class,
- gst_static_pad_template_get (&gst_rtp_j2k_pay_sink_template));
+ gst_element_class_add_static_pad_template (gstelement_class,
+ &gst_rtp_j2k_pay_src_template);
+ gst_element_class_add_static_pad_template (gstelement_class,
+ &gst_rtp_j2k_pay_sink_template);
gst_element_class_set_static_metadata (gstelement_class,
"RTP JPEG 2000 payloader", "Codec/Payloader/Network/RTP",
diff --git a/gst/rtp/gstrtpjpegdepay.c b/gst/rtp/gstrtpjpegdepay.c
index c804aea9d..a0c7fd415 100644
--- a/gst/rtp/gstrtpjpegdepay.c
+++ b/gst/rtp/gstrtpjpegdepay.c
@@ -94,10 +94,10 @@ gst_rtp_jpeg_depay_class_init (GstRtpJPEGDepayClass * klass)
gobject_class->finalize = gst_rtp_jpeg_depay_finalize;
- gst_element_class_add_pad_template (gstelement_class,
- gst_static_pad_template_get (&gst_rtp_jpeg_depay_src_template));
- gst_element_class_add_pad_template (gstelement_class,
- gst_static_pad_template_get (&gst_rtp_jpeg_depay_sink_template));
+ gst_element_class_add_static_pad_template (gstelement_class,
+ &gst_rtp_jpeg_depay_src_template);
+ gst_element_class_add_static_pad_template (gstelement_class,
+ &gst_rtp_jpeg_depay_sink_template);
gst_element_class_set_static_metadata (gstelement_class,
"RTP JPEG depayloader", "Codec/Depayloader/Network/RTP",
diff --git a/gst/rtp/gstrtpjpegpay.c b/gst/rtp/gstrtpjpegpay.c
index 12e43603b..a37c18b88 100644
--- a/gst/rtp/gstrtpjpegpay.c
+++ b/gst/rtp/gstrtpjpegpay.c
@@ -261,10 +261,10 @@ gst_rtp_jpeg_pay_class_init (GstRtpJPEGPayClass * klass)
gobject_class->set_property = gst_rtp_jpeg_pay_set_property;
gobject_class->get_property = gst_rtp_jpeg_pay_get_property;
- gst_element_class_add_pad_template (gstelement_class,
- gst_static_pad_template_get (&gst_rtp_jpeg_pay_src_template));
- gst_element_class_add_pad_template (gstelement_class,
- gst_static_pad_template_get (&gst_rtp_jpeg_pay_sink_template));
+ gst_element_class_add_static_pad_template (gstelement_class,
+ &gst_rtp_jpeg_pay_src_template);
+ gst_element_class_add_static_pad_template (gstelement_class,
+ &gst_rtp_jpeg_pay_sink_template);
gst_element_class_set_static_metadata (gstelement_class, "RTP JPEG payloader",
"Codec/Payloader/Network/RTP",
diff --git a/gst/rtp/gstrtpklvdepay.c b/gst/rtp/gstrtpklvdepay.c
index 583356bd6..eeefe7e45 100644
--- a/gst/rtp/gstrtpklvdepay.c
+++ b/gst/rtp/gstrtpklvdepay.c
@@ -85,10 +85,8 @@ gst_rtp_klv_depay_class_init (GstRtpKlvDepayClass * klass)
element_class->change_state = gst_rtp_klv_depay_change_state;
- 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,
"RTP KLV Depayloader", "Codec/Depayloader/Network/RTP",
diff --git a/gst/rtp/gstrtpklvpay.c b/gst/rtp/gstrtpklvpay.c
index a27d95ee6..5a07d2cb3 100644
--- a/gst/rtp/gstrtpklvpay.c
+++ b/gst/rtp/gstrtpklvpay.c
@@ -74,10 +74,8 @@ gst_rtp_klv_pay_class_init (GstRtpKlvPayClass * klass)
GST_DEBUG_CATEGORY_INIT (klvpay_debug, "klvpay", 0, "RTP KLV Payloader");
- 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,
"RTP KLV Payloader", "Codec/Payloader/Network/RTP",
diff --git a/gst/rtp/gstrtpmp1sdepay.c b/gst/rtp/gstrtpmp1sdepay.c
index f6c71b911..31a3108d2 100644
--- a/gst/rtp/gstrtpmp1sdepay.c
+++ b/gst/rtp/gstrtpmp1sdepay.c
@@ -81,10 +81,10 @@ gst_rtp_mp1s_depay_class_init (GstRtpMP1SDepayClass * klass)
gstrtpbasedepayload_class->process_rtp_packet = gst_rtp_mp1s_depay_process;
gstrtpbasedepayload_class->set_caps = gst_rtp_mp1s_depay_setcaps;
- gst_element_class_add_pad_template (gstelement_class,
- gst_static_pad_template_get (&gst_rtp_mp1s_depay_src_template));
- gst_element_class_add_pad_template (gstelement_class,
- gst_static_pad_template_get (&gst_rtp_mp1s_depay_sink_template));
+ gst_element_class_add_static_pad_template (gstelement_class,
+ &gst_rtp_mp1s_depay_src_template);
+ gst_element_class_add_static_pad_template (gstelement_class,
+ &gst_rtp_mp1s_depay_sink_template);
gst_element_class_set_static_metadata (gstelement_class,
"RTP MPEG1 System Stream depayloader", "Codec/Depayloader/Network/RTP",
diff --git a/gst/rtp/gstrtpmp2tdepay.c b/gst/rtp/gstrtpmp2tdepay.c
index 6f4d933d0..f8e0d0c7b 100644
--- a/gst/rtp/gstrtpmp2tdepay.c
+++ b/gst/rtp/gstrtpmp2tdepay.c
@@ -99,10 +99,10 @@ gst_rtp_mp2t_depay_class_init (GstRtpMP2TDepayClass * klass)
gobject_class->set_property = gst_rtp_mp2t_depay_set_property;
gobject_class->get_property = gst_rtp_mp2t_depay_get_property;
- gst_element_class_add_pad_template (gstelement_class,
- gst_static_pad_template_get (&gst_rtp_mp2t_depay_src_template));
- gst_element_class_add_pad_template (gstelement_class,
- gst_static_pad_template_get (&gst_rtp_mp2t_depay_sink_template));
+ gst_element_class_add_static_pad_template (gstelement_class,
+ &gst_rtp_mp2t_depay_src_template);
+ gst_element_class_add_static_pad_template (gstelement_class,
+ &gst_rtp_mp2t_depay_sink_template);
gst_element_class_set_static_metadata (gstelement_class,
"RTP MPEG Transport Stream depayloader", "Codec/Depayloader/Network/RTP",
diff --git a/gst/rtp/gstrtpmp2tpay.c b/gst/rtp/gstrtpmp2tpay.c
index 3ddb429ce..12f948ed8 100644
--- a/gst/rtp/gstrtpmp2tpay.c
+++ b/gst/rtp/gstrtpmp2tpay.c
@@ -76,10 +76,10 @@ gst_rtp_mp2t_pay_class_init (GstRTPMP2TPayClass * klass)
gstrtpbasepayload_class->set_caps = gst_rtp_mp2t_pay_setcaps;
gstrtpbasepayload_class->handle_buffer = gst_rtp_mp2t_pay_handle_buffer;
- gst_element_class_add_pad_template (gstelement_class,
- gst_static_pad_template_get (&gst_rtp_mp2t_pay_sink_template));
- gst_element_class_add_pad_template (gstelement_class,
- gst_static_pad_template_get (&gst_rtp_mp2t_pay_src_template));
+ gst_element_class_add_static_pad_template (gstelement_class,
+ &gst_rtp_mp2t_pay_sink_template);
+ gst_element_class_add_static_pad_template (gstelement_class,
+ &gst_rtp_mp2t_pay_src_template);
gst_element_class_set_static_metadata (gstelement_class,
"RTP MPEG2 Transport Stream payloader", "Codec/Payloader/Network/RTP",
"Payload-encodes MPEG2 TS into RTP packets (RFC 2250)",
diff --git a/gst/rtp/gstrtpmp4adepay.c b/gst/rtp/gstrtpmp4adepay.c
index 40080f1ff..0f5052326 100644
--- a/gst/rtp/gstrtpmp4adepay.c
+++ b/gst/rtp/gstrtpmp4adepay.c
@@ -90,10 +90,10 @@ gst_rtp_mp4a_depay_class_init (GstRtpMP4ADepayClass * klass)
gstrtpbasedepayload_class->process_rtp_packet = gst_rtp_mp4a_depay_process;
gstrtpbasedepayload_class->set_caps = gst_rtp_mp4a_depay_setcaps;
- gst_element_class_add_pad_template (gstelement_class,
- gst_static_pad_template_get (&gst_rtp_mp4a_depay_src_template));
- gst_element_class_add_pad_template (gstelement_class,
- gst_static_pad_template_get (&gst_rtp_mp4a_depay_sink_template));
+ gst_element_class_add_static_pad_template (gstelement_class,
+ &gst_rtp_mp4a_depay_src_template);
+ gst_element_class_add_static_pad_template (gstelement_class,
+ &gst_rtp_mp4a_depay_sink_template);
gst_element_class_set_static_metadata (gstelement_class,
"RTP MPEG4 audio depayloader", "Codec/Depayloader/Network/RTP",
diff --git a/gst/rtp/gstrtpmp4apay.c b/gst/rtp/gstrtpmp4apay.c
index b42cffdc8..64b4baad8 100644
--- a/gst/rtp/gstrtpmp4apay.c
+++ b/gst/rtp/gstrtpmp4apay.c
@@ -84,10 +84,10 @@ G_DEFINE_TYPE (GstRtpMP4APay, gst_rtp_mp4a_pay, GST_TYPE_RTP_BASE_PAYLOAD)
gstrtpbasepayload_class->set_caps = gst_rtp_mp4a_pay_setcaps;
gstrtpbasepayload_class->handle_buffer = gst_rtp_mp4a_pay_handle_buffer;
- gst_element_class_add_pad_template (gstelement_class,
- gst_static_pad_template_get (&gst_rtp_mp4a_pay_src_template));
- gst_element_class_add_pad_template (gstelement_class,
- gst_static_pad_template_get (&gst_rtp_mp4a_pay_sink_template));
+ gst_element_class_add_static_pad_template (gstelement_class,
+ &gst_rtp_mp4a_pay_src_template);
+ gst_element_class_add_static_pad_template (gstelement_class,
+ &gst_rtp_mp4a_pay_sink_template);
gst_element_class_set_static_metadata (gstelement_class,
"RTP MPEG4 audio payloader", "Codec/Payloader/Network/RTP",
diff --git a/gst/rtp/gstrtpmp4gdepay.c b/gst/rtp/gstrtpmp4gdepay.c
index c8c79c93d..d7d91c4ed 100644
--- a/gst/rtp/gstrtpmp4gdepay.c
+++ b/gst/rtp/gstrtpmp4gdepay.c
@@ -162,10 +162,10 @@ gst_rtp_mp4g_depay_class_init (GstRtpMP4GDepayClass * klass)
gstrtpbasedepayload_class->set_caps = gst_rtp_mp4g_depay_setcaps;
gstrtpbasedepayload_class->handle_event = gst_rtp_mp4g_depay_handle_event;
- gst_element_class_add_pad_template (gstelement_class,
- gst_static_pad_template_get (&gst_rtp_mp4g_depay_src_template));
- gst_element_class_add_pad_template (gstelement_class,
- gst_static_pad_template_get (&gst_rtp_mp4g_depay_sink_template));
+ gst_element_class_add_static_pad_template (gstelement_class,
+ &gst_rtp_mp4g_depay_src_template);
+ gst_element_class_add_static_pad_template (gstelement_class,
+ &gst_rtp_mp4g_depay_sink_template);
gst_element_class_set_static_metadata (gstelement_class,
"RTP MPEG4 ES depayloader", "Codec/Depayloader/Network/RTP",
diff --git a/gst/rtp/gstrtpmp4gpay.c b/gst/rtp/gstrtpmp4gpay.c
index 366ebf5a6..44c6cf2d1 100644
--- a/gst/rtp/gstrtpmp4gpay.c
+++ b/gst/rtp/gstrtpmp4gpay.c
@@ -107,10 +107,10 @@ G_DEFINE_TYPE (GstRtpMP4GPay, gst_rtp_mp4g_pay, GST_TYPE_RTP_BASE_PAYLOAD)
gstrtpbasepayload_class->handle_buffer = gst_rtp_mp4g_pay_handle_buffer;
gstrtpbasepayload_class->sink_event = gst_rtp_mp4g_pay_sink_event;
- gst_element_class_add_pad_template (gstelement_class,
- gst_static_pad_template_get (&gst_rtp_mp4g_pay_src_template));
- gst_element_class_add_pad_template (gstelement_class,
- gst_static_pad_template_get (&gst_rtp_mp4g_pay_sink_template));
+ gst_element_class_add_static_pad_template (gstelement_class,
+ &gst_rtp_mp4g_pay_src_template);
+ gst_element_class_add_static_pad_template (gstelement_class,
+ &gst_rtp_mp4g_pay_sink_template);
gst_element_class_set_static_metadata (gstelement_class,
"RTP MPEG4 ES payloader",
diff --git a/gst/rtp/gstrtpmp4vdepay.c b/gst/rtp/gstrtpmp4vdepay.c
index a62d64a2b..49b6f0f87 100644
--- a/gst/rtp/gstrtpmp4vdepay.c
+++ b/gst/rtp/gstrtpmp4vdepay.c
@@ -86,10 +86,10 @@ gst_rtp_mp4v_depay_class_init (GstRtpMP4VDepayClass * klass)
gstrtpbasedepayload_class->process_rtp_packet = gst_rtp_mp4v_depay_process;
gstrtpbasedepayload_class->set_caps = gst_rtp_mp4v_depay_setcaps;
- gst_element_class_add_pad_template (gstelement_class,
- gst_static_pad_template_get (&gst_rtp_mp4v_depay_src_template));
- gst_element_class_add_pad_template (gstelement_class,
- gst_static_pad_template_get (&gst_rtp_mp4v_depay_sink_template));
+ gst_element_class_add_static_pad_template (gstelement_class,
+ &gst_rtp_mp4v_depay_src_template);
+ gst_element_class_add_static_pad_template (gstelement_class,
+ &gst_rtp_mp4v_depay_sink_template);
gst_element_class_set_static_metadata (gstelement_class,
"RTP MPEG4 video depayloader", "Codec/Depayloader/Network/RTP",
diff --git a/gst/rtp/gstrtpmp4vpay.c b/gst/rtp/gstrtpmp4vpay.c
index 550957956..671f353ef 100644
--- a/gst/rtp/gstrtpmp4vpay.c
+++ b/gst/rtp/gstrtpmp4vpay.c
@@ -95,10 +95,10 @@ G_DEFINE_TYPE (GstRtpMP4VPay, gst_rtp_mp4v_pay, GST_TYPE_RTP_BASE_PAYLOAD)
gobject_class->set_property = gst_rtp_mp4v_pay_set_property;
gobject_class->get_property = gst_rtp_mp4v_pay_get_property;
- gst_element_class_add_pad_template (gstelement_class,
- gst_static_pad_template_get (&gst_rtp_mp4v_pay_src_template));
- gst_element_class_add_pad_template (gstelement_class,
- gst_static_pad_template_get (&gst_rtp_mp4v_pay_sink_template));
+ gst_element_class_add_static_pad_template (gstelement_class,
+ &gst_rtp_mp4v_pay_src_template);
+ gst_element_class_add_static_pad_template (gstelement_class,
+ &gst_rtp_mp4v_pay_sink_template);
gst_element_class_set_static_metadata (gstelement_class,
"RTP MPEG4 Video payloader", "Codec/Payloader/Network/RTP",
diff --git a/gst/rtp/gstrtpmpadepay.c b/gst/rtp/gstrtpmpadepay.c
index ccb4633ce..d580770ae 100644
--- a/gst/rtp/gstrtpmpadepay.c
+++ b/gst/rtp/gstrtpmpadepay.c
@@ -71,10 +71,10 @@ gst_rtp_mpa_depay_class_init (GstRtpMPADepayClass * klass)
gstelement_class = (GstElementClass *) klass;
gstrtpbasedepayload_class = (GstRTPBaseDepayloadClass *) klass;
- gst_element_class_add_pad_template (gstelement_class,
- gst_static_pad_template_get (&gst_rtp_mpa_depay_src_template));
- gst_element_class_add_pad_template (gstelement_class,
- gst_static_pad_template_get (&gst_rtp_mpa_depay_sink_template));
+ gst_element_class_add_static_pad_template (gstelement_class,
+ &gst_rtp_mpa_depay_src_template);
+ gst_element_class_add_static_pad_template (gstelement_class,
+ &gst_rtp_mpa_depay_sink_template);
gst_element_class_set_static_metadata (gstelement_class,
"RTP MPEG audio depayloader", "Codec/Depayloader/Network/RTP",
diff --git a/gst/rtp/gstrtpmpapay.c b/gst/rtp/gstrtpmpapay.c
index fe2f3a7e6..6e6054de8 100644
--- a/gst/rtp/gstrtpmpapay.c
+++ b/gst/rtp/gstrtpmpapay.c
@@ -87,10 +87,10 @@ gst_rtp_mpa_pay_class_init (GstRtpMPAPayClass * klass)
gstelement_class->change_state = gst_rtp_mpa_pay_change_state;
- gst_element_class_add_pad_template (gstelement_class,
- gst_static_pad_template_get (&gst_rtp_mpa_pay_src_template));
- gst_element_class_add_pad_template (gstelement_class,
- gst_static_pad_template_get (&gst_rtp_mpa_pay_sink_template));
+ gst_element_class_add_static_pad_template (gstelement_class,
+ &gst_rtp_mpa_pay_src_template);
+ gst_element_class_add_static_pad_template (gstelement_class,
+ &gst_rtp_mpa_pay_sink_template);
gst_element_class_set_static_metadata (gstelement_class,
"RTP MPEG audio payloader", "Codec/Payloader/Network/RTP",
diff --git a/gst/rtp/gstrtpmparobustdepay.c b/gst/rtp/gstrtpmparobustdepay.c
index 02155e523..702d2b0ea 100644
--- a/gst/rtp/gstrtpmparobustdepay.c
+++ b/gst/rtp/gstrtpmparobustdepay.c
@@ -111,10 +111,10 @@ gst_rtp_mpa_robust_depay_class_init (GstRtpMPARobustDepayClass * klass)
gstelement_class->change_state =
GST_DEBUG_FUNCPTR (gst_rtp_mpa_robust_change_state);
- gst_element_class_add_pad_template (gstelement_class,
- gst_static_pad_template_get (&gst_rtp_mpa_robust_depay_src_template));
- gst_element_class_add_pad_template (gstelement_class,
- gst_static_pad_template_get (&gst_rtp_mpa_robust_depay_sink_template));
+ gst_element_class_add_static_pad_template (gstelement_class,
+ &gst_rtp_mpa_robust_depay_src_template);
+ gst_element_class_add_static_pad_template (gstelement_class,
+ &gst_rtp_mpa_robust_depay_sink_template);
gst_element_class_set_static_metadata (gstelement_class,
"RTP MPEG audio depayloader", "Codec/Depayloader/Network/RTP",
diff --git a/gst/rtp/gstrtpmpvdepay.c b/gst/rtp/gstrtpmpvdepay.c
index ff98fc049..81b5e2270 100644
--- a/gst/rtp/gstrtpmpvdepay.c
+++ b/gst/rtp/gstrtpmpvdepay.c
@@ -70,10 +70,10 @@ gst_rtp_mpv_depay_class_init (GstRtpMPVDepayClass * klass)
gstelement_class = (GstElementClass *) klass;
gstrtpbasedepayload_class = (GstRTPBaseDepayloadClass *) klass;
- gst_element_class_add_pad_template (gstelement_class,
- gst_static_pad_template_get (&gst_rtp_mpv_depay_src_template));
- gst_element_class_add_pad_template (gstelement_class,
- gst_static_pad_template_get (&gst_rtp_mpv_depay_sink_template));
+ gst_element_class_add_static_pad_template (gstelement_class,
+ &gst_rtp_mpv_depay_src_template);
+ gst_element_class_add_static_pad_template (gstelement_class,
+ &gst_rtp_mpv_depay_sink_template);
gst_element_class_set_static_metadata (gstelement_class,
"RTP MPEG video depayloader", "Codec/Depayloader/Network/RTP",
diff --git a/gst/rtp/gstrtpmpvpay.c b/gst/rtp/gstrtpmpvpay.c
index 40bda45bb..d16b3a009 100644
--- a/gst/rtp/gstrtpmpvpay.c
+++ b/gst/rtp/gstrtpmpvpay.c
@@ -85,10 +85,10 @@ gst_rtp_mpv_pay_class_init (GstRTPMPVPayClass * klass)
gstelement_class->change_state = gst_rtp_mpv_pay_change_state;
- gst_element_class_add_pad_template (gstelement_class,
- gst_static_pad_template_get (&gst_rtp_mpv_pay_sink_template));
- gst_element_class_add_pad_template (gstelement_class,
- gst_static_pad_template_get (&gst_rtp_mpv_pay_src_template));
+ gst_element_class_add_static_pad_template (gstelement_class,
+ &gst_rtp_mpv_pay_sink_template);
+ gst_element_class_add_static_pad_template (gstelement_class,
+ &gst_rtp_mpv_pay_src_template);
gst_element_class_set_static_metadata (gstelement_class,
"RTP MPEG2 ES video payloader", "Codec/Payloader/Network/RTP",
diff --git a/gst/rtp/gstrtpopusdepay.c b/gst/rtp/gstrtpopusdepay.c
index b9d529ede..afa6ba7e5 100644
--- a/gst/rtp/gstrtpopusdepay.c
+++ b/gst/rtp/gstrtpopusdepay.c
@@ -67,10 +67,10 @@ gst_rtp_opus_depay_class_init (GstRTPOpusDepayClass * klass)
element_class = GST_ELEMENT_CLASS (klass);
gstbasertpdepayload_class = (GstRTPBaseDepayloadClass *) klass;
- gst_element_class_add_pad_template (element_class,
- gst_static_pad_template_get (&gst_rtp_opus_depay_src_template));
- gst_element_class_add_pad_template (element_class,
- gst_static_pad_template_get (&gst_rtp_opus_depay_sink_template));
+ gst_element_class_add_static_pad_template (element_class,
+ &gst_rtp_opus_depay_src_template);
+ gst_element_class_add_static_pad_template (element_class,
+ &gst_rtp_opus_depay_sink_template);
gst_element_class_set_static_metadata (element_class,
"RTP Opus packet depayloader", "Codec/Depayloader/Network/RTP",
"Extracts Opus audio from RTP packets",
diff --git a/gst/rtp/gstrtpopuspay.c b/gst/rtp/gstrtpopuspay.c
index 1c6fb5106..1a6eb805a 100644
--- a/gst/rtp/gstrtpopuspay.c
+++ b/gst/rtp/gstrtpopuspay.c
@@ -76,10 +76,10 @@ gst_rtp_opus_pay_class_init (GstRtpOPUSPayClass * klass)
gstbasertppayload_class->get_caps = gst_rtp_opus_pay_getcaps;
gstbasertppayload_class->handle_buffer = gst_rtp_opus_pay_handle_buffer;
- gst_element_class_add_pad_template (element_class,
- gst_static_pad_template_get (&gst_rtp_opus_pay_src_template));
- gst_element_class_add_pad_template (element_class,
- gst_static_pad_template_get (&gst_rtp_opus_pay_sink_template));
+ gst_element_class_add_static_pad_template (element_class,
+ &gst_rtp_opus_pay_src_template);
+ gst_element_class_add_static_pad_template (element_class,
+ &gst_rtp_opus_pay_sink_template);
gst_element_class_set_static_metadata (element_class,
"RTP Opus payloader",
diff --git a/gst/rtp/gstrtppcmadepay.c b/gst/rtp/gstrtppcmadepay.c
index 5556dc071..4d1352806 100644
--- a/gst/rtp/gstrtppcmadepay.c
+++ b/gst/rtp/gstrtppcmadepay.c
@@ -79,10 +79,10 @@ gst_rtp_pcma_depay_class_init (GstRtpPcmaDepayClass * klass)
gstelement_class = (GstElementClass *) klass;
gstrtpbasedepayload_class = (GstRTPBaseDepayloadClass *) klass;
- gst_element_class_add_pad_template (gstelement_class,
- gst_static_pad_template_get (&gst_rtp_pcma_depay_src_template));
- gst_element_class_add_pad_template (gstelement_class,
- gst_static_pad_template_get (&gst_rtp_pcma_depay_sink_template));
+ gst_element_class_add_static_pad_template (gstelement_class,
+ &gst_rtp_pcma_depay_src_template);
+ gst_element_class_add_static_pad_template (gstelement_class,
+ &gst_rtp_pcma_depay_sink_template);
gst_element_class_set_static_metadata (gstelement_class,
"RTP PCMA depayloader", "Codec/Depayloader/Network/RTP",
diff --git a/gst/rtp/gstrtppcmapay.c b/gst/rtp/gstrtppcmapay.c
index 0860d760b..7c0ca164d 100644
--- a/gst/rtp/gstrtppcmapay.c
+++ b/gst/rtp/gstrtppcmapay.c
@@ -66,10 +66,10 @@ gst_rtp_pcma_pay_class_init (GstRtpPcmaPayClass * klass)
gstelement_class = (GstElementClass *) klass;
gstrtpbasepayload_class = (GstRTPBasePayloadClass *) klass;
- gst_element_class_add_pad_template (gstelement_class,
- gst_static_pad_template_get (&gst_rtp_pcma_pay_sink_template));
- gst_element_class_add_pad_template (gstelement_class,
- gst_static_pad_template_get (&gst_rtp_pcma_pay_src_template));
+ gst_element_class_add_static_pad_template (gstelement_class,
+ &gst_rtp_pcma_pay_sink_template);
+ gst_element_class_add_static_pad_template (gstelement_class,
+ &gst_rtp_pcma_pay_src_template);
gst_element_class_set_static_metadata (gstelement_class, "RTP PCMA payloader",
"Codec/Payloader/Network/RTP",
diff --git a/gst/rtp/gstrtppcmudepay.c b/gst/rtp/gstrtppcmudepay.c
index 450ca9e87..f8543154d 100644
--- a/gst/rtp/gstrtppcmudepay.c
+++ b/gst/rtp/gstrtppcmudepay.c
@@ -80,10 +80,10 @@ gst_rtp_pcmu_depay_class_init (GstRtpPcmuDepayClass * klass)
gstelement_class = (GstElementClass *) klass;
gstrtpbasedepayload_class = (GstRTPBaseDepayloadClass *) klass;
- gst_element_class_add_pad_template (gstelement_class,
- gst_static_pad_template_get (&gst_rtp_pcmu_depay_src_template));
- gst_element_class_add_pad_template (gstelement_class,
- gst_static_pad_template_get (&gst_rtp_pcmu_depay_sink_template));
+ gst_element_class_add_static_pad_template (gstelement_class,
+ &gst_rtp_pcmu_depay_src_template);
+ gst_element_class_add_static_pad_template (gstelement_class,
+ &gst_rtp_pcmu_depay_sink_template);
gst_element_class_set_static_metadata (gstelement_class,
"RTP PCMU depayloader", "Codec/Depayloader/Network/RTP",
diff --git a/gst/rtp/gstrtppcmupay.c b/gst/rtp/gstrtppcmupay.c
index b4beb9637..03bcd7dbf 100644
--- a/gst/rtp/gstrtppcmupay.c
+++ b/gst/rtp/gstrtppcmupay.c
@@ -66,10 +66,10 @@ gst_rtp_pcmu_pay_class_init (GstRtpPcmuPayClass * klass)
gstelement_class = (GstElementClass *) klass;
gstrtpbasepayload_class = (GstRTPBasePayloadClass *) klass;
- gst_element_class_add_pad_template (gstelement_class,
- gst_static_pad_template_get (&gst_rtp_pcmu_pay_sink_template));
- gst_element_class_add_pad_template (gstelement_class,
- gst_static_pad_template_get (&gst_rtp_pcmu_pay_src_template));
+ gst_element_class_add_static_pad_template (gstelement_class,
+ &gst_rtp_pcmu_pay_sink_template);
+ gst_element_class_add_static_pad_template (gstelement_class,
+ &gst_rtp_pcmu_pay_src_template);
gst_element_class_set_static_metadata (gstelement_class, "RTP PCMU payloader",
"Codec/Payloader/Network/RTP",
diff --git a/gst/rtp/gstrtpqcelpdepay.c b/gst/rtp/gstrtpqcelpdepay.c
index 58815dc69..924d71eff 100644
--- a/gst/rtp/gstrtpqcelpdepay.c
+++ b/gst/rtp/gstrtpqcelpdepay.c
@@ -98,10 +98,10 @@ gst_rtp_qcelp_depay_class_init (GstRtpQCELPDepayClass * klass)
gstrtpbasedepayload_class->process_rtp_packet = gst_rtp_qcelp_depay_process;
gstrtpbasedepayload_class->set_caps = gst_rtp_qcelp_depay_setcaps;
- gst_element_class_add_pad_template (gstelement_class,
- gst_static_pad_template_get (&gst_rtp_qcelp_depay_src_template));
- gst_element_class_add_pad_template (gstelement_class,
- gst_static_pad_template_get (&gst_rtp_qcelp_depay_sink_template));
+ gst_element_class_add_static_pad_template (gstelement_class,
+ &gst_rtp_qcelp_depay_src_template);
+ gst_element_class_add_static_pad_template (gstelement_class,
+ &gst_rtp_qcelp_depay_sink_template);
gst_element_class_set_static_metadata (gstelement_class,
"RTP QCELP depayloader", "Codec/Depayloader/Network/RTP",
diff --git a/gst/rtp/gstrtpqdmdepay.c b/gst/rtp/gstrtpqdmdepay.c
index fc12c79ce..898663aa7 100644
--- a/gst/rtp/gstrtpqdmdepay.c
+++ b/gst/rtp/gstrtpqdmdepay.c
@@ -84,10 +84,10 @@ gst_rtp_qdm2_depay_class_init (GstRtpQDM2DepayClass * klass)
gstelement_class->change_state = gst_rtp_qdm2_depay_change_state;
- gst_element_class_add_pad_template (gstelement_class,
- gst_static_pad_template_get (&gst_rtp_qdm2_depay_src_template));
- gst_element_class_add_pad_template (gstelement_class,
- gst_static_pad_template_get (&gst_rtp_qdm2_depay_sink_template));
+ gst_element_class_add_static_pad_template (gstelement_class,
+ &gst_rtp_qdm2_depay_src_template);
+ gst_element_class_add_static_pad_template (gstelement_class,
+ &gst_rtp_qdm2_depay_sink_template);
gst_element_class_set_static_metadata (gstelement_class,
"RTP QDM2 depayloader",
diff --git a/gst/rtp/gstrtpsbcdepay.c b/gst/rtp/gstrtpsbcdepay.c
index 4863fc824..7f8ba3966 100644
--- a/gst/rtp/gstrtpsbcdepay.c
+++ b/gst/rtp/gstrtpsbcdepay.c
@@ -76,10 +76,10 @@ gst_rtp_sbc_depay_class_init (GstRtpSbcDepayClass * klass)
gstbasertpdepayload_class->set_caps = gst_rtp_sbc_depay_setcaps;
gstbasertpdepayload_class->process_rtp_packet = gst_rtp_sbc_depay_process;
- gst_element_class_add_pad_template (element_class,
- gst_static_pad_template_get (&gst_rtp_sbc_depay_src_template));
- gst_element_class_add_pad_template (element_class,
- gst_static_pad_template_get (&gst_rtp_sbc_depay_sink_template));
+ gst_element_class_add_static_pad_template (element_class,
+ &gst_rtp_sbc_depay_src_template);
+ gst_element_class_add_static_pad_template (element_class,
+ &gst_rtp_sbc_depay_sink_template);
GST_DEBUG_CATEGORY_INIT (rtpsbcdepay_debug, "rtpsbcdepay", 0,
"SBC Audio RTP Depayloader");
diff --git a/gst/rtp/gstrtpsbcpay.c b/gst/rtp/gstrtpsbcpay.c
index b01240759..dc3d86074 100644
--- a/gst/rtp/gstrtpsbcpay.c
+++ b/gst/rtp/gstrtpsbcpay.c
@@ -293,10 +293,10 @@ gst_rtp_sbc_pay_class_init (GstRtpSBCPayClass * klass)
"(-1 for maximum allowed by the mtu)",
-1, G_MAXINT, DEFAULT_MIN_FRAMES, G_PARAM_READWRITE));
- gst_element_class_add_pad_template (element_class,
- gst_static_pad_template_get (&gst_rtp_sbc_pay_sink_factory));
- gst_element_class_add_pad_template (element_class,
- gst_static_pad_template_get (&gst_rtp_sbc_pay_src_factory));
+ gst_element_class_add_static_pad_template (element_class,
+ &gst_rtp_sbc_pay_sink_factory);
+ gst_element_class_add_static_pad_template (element_class,
+ &gst_rtp_sbc_pay_src_factory);
gst_element_class_set_static_metadata (element_class, "RTP packet payloader",
"Codec/Payloader/Network", "Payload SBC audio as RTP packets",
diff --git a/gst/rtp/gstrtpsirendepay.c b/gst/rtp/gstrtpsirendepay.c
index d5e95eb41..15b710950 100644
--- a/gst/rtp/gstrtpsirendepay.c
+++ b/gst/rtp/gstrtpsirendepay.c
@@ -67,10 +67,10 @@ G_DEFINE_TYPE (GstRTPSirenDepay, gst_rtp_siren_depay,
gstrtpbasedepayload_class->process_rtp_packet = gst_rtp_siren_depay_process;
gstrtpbasedepayload_class->set_caps = gst_rtp_siren_depay_setcaps;
- gst_element_class_add_pad_template (gstelement_class,
- gst_static_pad_template_get (&gst_rtp_siren_depay_src_template));
- gst_element_class_add_pad_template (gstelement_class,
- gst_static_pad_template_get (&gst_rtp_siren_depay_sink_template));
+ gst_element_class_add_static_pad_template (gstelement_class,
+ &gst_rtp_siren_depay_src_template);
+ gst_element_class_add_static_pad_template (gstelement_class,
+ &gst_rtp_siren_depay_sink_template);
gst_element_class_set_static_metadata (gstelement_class,
"RTP Siren packet depayloader", "Codec/Depayloader/Network/RTP",
"Extracts Siren audio from RTP packets",
diff --git a/gst/rtp/gstrtpsirenpay.c b/gst/rtp/gstrtpsirenpay.c
index 2277fecfe..04f9aa817 100644
--- a/gst/rtp/gstrtpsirenpay.c
+++ b/gst/rtp/gstrtpsirenpay.c
@@ -65,10 +65,10 @@ gst_rtp_siren_pay_class_init (GstRTPSirenPayClass * klass)
gstrtpbasepayload_class->set_caps = gst_rtp_siren_pay_setcaps;
- gst_element_class_add_pad_template (gstelement_class,
- gst_static_pad_template_get (&gst_rtp_siren_pay_sink_template));
- gst_element_class_add_pad_template (gstelement_class,
- gst_static_pad_template_get (&gst_rtp_siren_pay_src_template));
+ gst_element_class_add_static_pad_template (gstelement_class,
+ &gst_rtp_siren_pay_sink_template);
+ gst_element_class_add_static_pad_template (gstelement_class,
+ &gst_rtp_siren_pay_src_template);
gst_element_class_set_static_metadata (gstelement_class,
"RTP Payloader for Siren Audio", "Codec/Payloader/Network/RTP",
"Packetize Siren audio streams into RTP packets",
diff --git a/gst/rtp/gstrtpspeexdepay.c b/gst/rtp/gstrtpspeexdepay.c
index eb9d8e400..b6577e5e4 100644
--- a/gst/rtp/gstrtpspeexdepay.c
+++ b/gst/rtp/gstrtpspeexdepay.c
@@ -79,10 +79,10 @@ gst_rtp_speex_depay_class_init (GstRtpSPEEXDepayClass * klass)
gstrtpbasedepayload_class->process_rtp_packet = gst_rtp_speex_depay_process;
gstrtpbasedepayload_class->set_caps = gst_rtp_speex_depay_setcaps;
- gst_element_class_add_pad_template (gstelement_class,
- gst_static_pad_template_get (&gst_rtp_speex_depay_src_template));
- gst_element_class_add_pad_template (gstelement_class,
- gst_static_pad_template_get (&gst_rtp_speex_depay_sink_template));
+ gst_element_class_add_static_pad_template (gstelement_class,
+ &gst_rtp_speex_depay_src_template);
+ gst_element_class_add_static_pad_template (gstelement_class,
+ &gst_rtp_speex_depay_sink_template);
gst_element_class_set_static_metadata (gstelement_class,
"RTP Speex depayloader", "Codec/Depayloader/Network/RTP",
"Extracts Speex audio from RTP packets",
diff --git a/gst/rtp/gstrtpspeexpay.c b/gst/rtp/gstrtpspeexpay.c
index 4ba86ba93..8a64a029c 100644
--- a/gst/rtp/gstrtpspeexpay.c
+++ b/gst/rtp/gstrtpspeexpay.c
@@ -80,10 +80,10 @@ gst_rtp_speex_pay_class_init (GstRtpSPEEXPayClass * klass)
gstrtpbasepayload_class->get_caps = gst_rtp_speex_pay_getcaps;
gstrtpbasepayload_class->handle_buffer = gst_rtp_speex_pay_handle_buffer;
- gst_element_class_add_pad_template (gstelement_class,
- gst_static_pad_template_get (&gst_rtp_speex_pay_sink_template));
- gst_element_class_add_pad_template (gstelement_class,
- gst_static_pad_template_get (&gst_rtp_speex_pay_src_template));
+ gst_element_class_add_static_pad_template (gstelement_class,
+ &gst_rtp_speex_pay_sink_template);
+ gst_element_class_add_static_pad_template (gstelement_class,
+ &gst_rtp_speex_pay_src_template);
gst_element_class_set_static_metadata (gstelement_class,
"RTP Speex payloader", "Codec/Payloader/Network/RTP",
"Payload-encodes Speex audio into a RTP packet",
diff --git a/gst/rtp/gstrtpstreamdepay.c b/gst/rtp/gstrtpstreamdepay.c
index 699b15cf7..34500e9cd 100644
--- a/gst/rtp/gstrtpstreamdepay.c
+++ b/gst/rtp/gstrtpstreamdepay.c
@@ -76,10 +76,8 @@ gst_rtp_stream_depay_class_init (GstRtpStreamDepayClass * klass)
GST_DEBUG_CATEGORY_INIT (gst_rtp_stream_depay_debug, "rtpstreamdepay", 0,
"RTP stream depayloader");
- gst_element_class_add_pad_template (gstelement_class,
- gst_static_pad_template_get (&src_template));
- gst_element_class_add_pad_template (gstelement_class,
- gst_static_pad_template_get (&sink_template));
+ gst_element_class_add_static_pad_template (gstelement_class, &src_template);
+ gst_element_class_add_static_pad_template (gstelement_class, &sink_template);
gst_element_class_set_static_metadata (gstelement_class,
"RTP Stream Depayloading", "Codec/Depayloader/Network",
diff --git a/gst/rtp/gstrtpstreampay.c b/gst/rtp/gstrtpstreampay.c
index 117f67830..87848c4f2 100644
--- a/gst/rtp/gstrtpstreampay.c
+++ b/gst/rtp/gstrtpstreampay.c
@@ -80,10 +80,8 @@ gst_rtp_stream_pay_class_init (GstRtpStreamPayClass * klass)
"Payloads RTP/RTCP packets for streaming protocols according to RFC4571",
"Sebastian Dröge <sebastian@centricular.com>");
- gst_element_class_add_pad_template (gstelement_class,
- gst_static_pad_template_get (&src_template));
- gst_element_class_add_pad_template (gstelement_class,
- gst_static_pad_template_get (&sink_template));
+ gst_element_class_add_static_pad_template (gstelement_class, &src_template);
+ gst_element_class_add_static_pad_template (gstelement_class, &sink_template);
}
static void
diff --git a/gst/rtp/gstrtpsv3vdepay.c b/gst/rtp/gstrtpsv3vdepay.c
index 7900dece0..932eb1e64 100644
--- a/gst/rtp/gstrtpsv3vdepay.c
+++ b/gst/rtp/gstrtpsv3vdepay.c
@@ -80,10 +80,10 @@ gst_rtp_sv3v_depay_class_init (GstRtpSV3VDepayClass * klass)
gstelement_class->change_state = gst_rtp_sv3v_depay_change_state;
- gst_element_class_add_pad_template (gstelement_class,
- gst_static_pad_template_get (&gst_rtp_sv3v_depay_src_template));
- gst_element_class_add_pad_template (gstelement_class,
- gst_static_pad_template_get (&gst_rtp_sv3v_depay_sink_template));
+ gst_element_class_add_static_pad_template (gstelement_class,
+ &gst_rtp_sv3v_depay_src_template);
+ gst_element_class_add_static_pad_template (gstelement_class,
+ &gst_rtp_sv3v_depay_sink_template);
gst_element_class_set_static_metadata (gstelement_class,
"RTP SVQ3 depayloader", "Codec/Depayloader/Network/RTP",
diff --git a/gst/rtp/gstrtptheoradepay.c b/gst/rtp/gstrtptheoradepay.c
index 0a9f22842..edc50cfff 100644
--- a/gst/rtp/gstrtptheoradepay.c
+++ b/gst/rtp/gstrtptheoradepay.c
@@ -96,10 +96,10 @@ gst_rtp_theora_depay_class_init (GstRtpTheoraDepayClass * klass)
gstrtpbasedepayload_class->set_caps = gst_rtp_theora_depay_setcaps;
gstrtpbasedepayload_class->packet_lost = gst_rtp_theora_depay_packet_lost;
- gst_element_class_add_pad_template (gstelement_class,
- gst_static_pad_template_get (&gst_rtp_theora_depay_sink_template));
- gst_element_class_add_pad_template (gstelement_class,
- gst_static_pad_template_get (&gst_rtp_theora_depay_src_template));
+ gst_element_class_add_static_pad_template (gstelement_class,
+ &gst_rtp_theora_depay_sink_template);
+ gst_element_class_add_static_pad_template (gstelement_class,
+ &gst_rtp_theora_depay_src_template);
gst_element_class_set_static_metadata (gstelement_class,
"RTP Theora depayloader", "Codec/Depayloader/Network/RTP",
diff --git a/gst/rtp/gstrtptheorapay.c b/gst/rtp/gstrtptheorapay.c
index c2b46404c..b6c5bde2d 100644
--- a/gst/rtp/gstrtptheorapay.c
+++ b/gst/rtp/gstrtptheorapay.c
@@ -119,10 +119,10 @@ gst_rtp_theora_pay_class_init (GstRtpTheoraPayClass * klass)
gobject_class->set_property = gst_rtp_theora_pay_set_property;
gobject_class->get_property = gst_rtp_theora_pay_get_property;
- gst_element_class_add_pad_template (gstelement_class,
- gst_static_pad_template_get (&gst_rtp_theora_pay_src_template));
- gst_element_class_add_pad_template (gstelement_class,
- gst_static_pad_template_get (&gst_rtp_theora_pay_sink_template));
+ gst_element_class_add_static_pad_template (gstelement_class,
+ &gst_rtp_theora_pay_src_template);
+ gst_element_class_add_static_pad_template (gstelement_class,
+ &gst_rtp_theora_pay_sink_template);
gst_element_class_set_static_metadata (gstelement_class,
"RTP Theora payloader", "Codec/Payloader/Network/RTP",
diff --git a/gst/rtp/gstrtpvorbisdepay.c b/gst/rtp/gstrtpvorbisdepay.c
index bd2f78faf..fdd5eb84e 100644
--- a/gst/rtp/gstrtpvorbisdepay.c
+++ b/gst/rtp/gstrtpvorbisdepay.c
@@ -90,10 +90,10 @@ gst_rtp_vorbis_depay_class_init (GstRtpVorbisDepayClass * klass)
gstrtpbasedepayload_class->process_rtp_packet = gst_rtp_vorbis_depay_process;
gstrtpbasedepayload_class->set_caps = gst_rtp_vorbis_depay_setcaps;
- gst_element_class_add_pad_template (gstelement_class,
- gst_static_pad_template_get (&gst_rtp_vorbis_depay_sink_template));
- gst_element_class_add_pad_template (gstelement_class,
- gst_static_pad_template_get (&gst_rtp_vorbis_depay_src_template));
+ gst_element_class_add_static_pad_template (gstelement_class,
+ &gst_rtp_vorbis_depay_sink_template);
+ gst_element_class_add_static_pad_template (gstelement_class,
+ &gst_rtp_vorbis_depay_src_template);
gst_element_class_set_static_metadata (gstelement_class,
"RTP Vorbis depayloader", "Codec/Depayloader/Network/RTP",
diff --git a/gst/rtp/gstrtpvorbispay.c b/gst/rtp/gstrtpvorbispay.c
index 2557bb51e..1a698c0c0 100644
--- a/gst/rtp/gstrtpvorbispay.c
+++ b/gst/rtp/gstrtpvorbispay.c
@@ -110,10 +110,10 @@ gst_rtp_vorbis_pay_class_init (GstRtpVorbisPayClass * klass)
gobject_class->set_property = gst_rtp_vorbis_pay_set_property;
gobject_class->get_property = gst_rtp_vorbis_pay_get_property;
- gst_element_class_add_pad_template (gstelement_class,
- gst_static_pad_template_get (&gst_rtp_vorbis_pay_src_template));
- gst_element_class_add_pad_template (gstelement_class,
- gst_static_pad_template_get (&gst_rtp_vorbis_pay_sink_template));
+ gst_element_class_add_static_pad_template (gstelement_class,
+ &gst_rtp_vorbis_pay_src_template);
+ gst_element_class_add_static_pad_template (gstelement_class,
+ &gst_rtp_vorbis_pay_sink_template);
gst_element_class_set_static_metadata (gstelement_class,
"RTP Vorbis payloader",
diff --git a/gst/rtp/gstrtpvp8depay.c b/gst/rtp/gstrtpvp8depay.c
index 4357a5f3d..9fb631a8c 100644
--- a/gst/rtp/gstrtpvp8depay.c
+++ b/gst/rtp/gstrtpvp8depay.c
@@ -73,10 +73,10 @@ gst_rtp_vp8_depay_class_init (GstRtpVP8DepayClass * gst_rtp_vp8_depay_class)
(GstRTPBaseDepayloadClass *) (gst_rtp_vp8_depay_class);
- gst_element_class_add_pad_template (element_class,
- gst_static_pad_template_get (&gst_rtp_vp8_depay_sink_template));
- gst_element_class_add_pad_template (element_class,
- gst_static_pad_template_get (&gst_rtp_vp8_depay_src_template));
+ gst_element_class_add_static_pad_template (element_class,
+ &gst_rtp_vp8_depay_sink_template);
+ gst_element_class_add_static_pad_template (element_class,
+ &gst_rtp_vp8_depay_src_template);
gst_element_class_set_static_metadata (element_class, "RTP VP8 depayloader",
"Codec/Depayloader/Network/RTP",
diff --git a/gst/rtp/gstrtpvp8pay.c b/gst/rtp/gstrtpvp8pay.c
index d7576ab4b..c5494d0bc 100644
--- a/gst/rtp/gstrtpvp8pay.c
+++ b/gst/rtp/gstrtpvp8pay.c
@@ -119,10 +119,10 @@ gst_rtp_vp8_pay_class_init (GstRtpVP8PayClass * gst_rtp_vp8_pay_class)
GST_TYPE_RTP_VP8_PAY_PICTURE_ID_MODE, DEFAULT_PICTURE_ID_MODE,
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
- gst_element_class_add_pad_template (element_class,
- gst_static_pad_template_get (&gst_rtp_vp8_pay_sink_template));
- gst_element_class_add_pad_template (element_class,
- gst_static_pad_template_get (&gst_rtp_vp8_pay_src_template));
+ gst_element_class_add_static_pad_template (element_class,
+ &gst_rtp_vp8_pay_sink_template);
+ gst_element_class_add_static_pad_template (element_class,
+ &gst_rtp_vp8_pay_src_template);
gst_element_class_set_static_metadata (element_class, "RTP VP8 payloader",
"Codec/Payloader/Network/RTP",
diff --git a/gst/rtp/gstrtpvp9depay.c b/gst/rtp/gstrtpvp9depay.c
index 8624192a4..42e848990 100644
--- a/gst/rtp/gstrtpvp9depay.c
+++ b/gst/rtp/gstrtpvp9depay.c
@@ -74,10 +74,10 @@ gst_rtp_vp9_depay_class_init (GstRtpVP9DepayClass * gst_rtp_vp9_depay_class)
(GstRTPBaseDepayloadClass *) (gst_rtp_vp9_depay_class);
- gst_element_class_add_pad_template (element_class,
- gst_static_pad_template_get (&gst_rtp_vp9_depay_sink_template));
- gst_element_class_add_pad_template (element_class,
- gst_static_pad_template_get (&gst_rtp_vp9_depay_src_template));
+ gst_element_class_add_static_pad_template (element_class,
+ &gst_rtp_vp9_depay_sink_template);
+ gst_element_class_add_static_pad_template (element_class,
+ &gst_rtp_vp9_depay_src_template);
gst_element_class_set_static_metadata (element_class, "RTP VP9 depayloader",
"Codec/Depayloader/Network/RTP",
diff --git a/gst/rtp/gstrtpvp9pay.c b/gst/rtp/gstrtpvp9pay.c
index 9f80fe5ca..945affbce 100644
--- a/gst/rtp/gstrtpvp9pay.c
+++ b/gst/rtp/gstrtpvp9pay.c
@@ -120,10 +120,10 @@ gst_rtp_vp9_pay_class_init (GstRtpVP9PayClass * gst_rtp_vp9_pay_class)
GST_TYPE_RTP_VP9_PAY_PICTURE_ID_MODE, DEFAULT_PICTURE_ID_MODE,
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
- gst_element_class_add_pad_template (element_class,
- gst_static_pad_template_get (&gst_rtp_vp9_pay_sink_template));
- gst_element_class_add_pad_template (element_class,
- gst_static_pad_template_get (&gst_rtp_vp9_pay_src_template));
+ gst_element_class_add_static_pad_template (element_class,
+ &gst_rtp_vp9_pay_sink_template);
+ gst_element_class_add_static_pad_template (element_class,
+ &gst_rtp_vp9_pay_src_template);
gst_element_class_set_static_metadata (element_class, "RTP VP9 payloader",
"Codec/Payloader/Network/RTP",
diff --git a/gst/rtp/gstrtpvrawdepay.c b/gst/rtp/gstrtpvrawdepay.c
index b5e6dfd72..28848fbf0 100644
--- a/gst/rtp/gstrtpvrawdepay.c
+++ b/gst/rtp/gstrtpvrawdepay.c
@@ -88,10 +88,10 @@ gst_rtp_vraw_depay_class_init (GstRtpVRawDepayClass * klass)
gst_rtp_vraw_depay_process_packet;
gstrtpbasedepayload_class->handle_event = gst_rtp_vraw_depay_handle_event;
- gst_element_class_add_pad_template (gstelement_class,
- gst_static_pad_template_get (&gst_rtp_vraw_depay_src_template));
- gst_element_class_add_pad_template (gstelement_class,
- gst_static_pad_template_get (&gst_rtp_vraw_depay_sink_template));
+ gst_element_class_add_static_pad_template (gstelement_class,
+ &gst_rtp_vraw_depay_src_template);
+ gst_element_class_add_static_pad_template (gstelement_class,
+ &gst_rtp_vraw_depay_sink_template);
gst_element_class_set_static_metadata (gstelement_class,
"RTP Raw Video depayloader", "Codec/Depayloader/Network/RTP",
diff --git a/gst/rtp/gstrtpvrawpay.c b/gst/rtp/gstrtpvrawpay.c
index 0843486c6..19367434b 100644
--- a/gst/rtp/gstrtpvrawpay.c
+++ b/gst/rtp/gstrtpvrawpay.c
@@ -110,10 +110,10 @@ G_DEFINE_TYPE (GstRtpVRawPay, gst_rtp_vraw_pay, GST_TYPE_RTP_BASE_PAYLOAD)
gstrtpbasepayload_class->set_caps = gst_rtp_vraw_pay_setcaps;
gstrtpbasepayload_class->handle_buffer = gst_rtp_vraw_pay_handle_buffer;
- gst_element_class_add_pad_template (gstelement_class,
- gst_static_pad_template_get (&gst_rtp_vraw_pay_src_template));
- gst_element_class_add_pad_template (gstelement_class,
- gst_static_pad_template_get (&gst_rtp_vraw_pay_sink_template));
+ gst_element_class_add_static_pad_template (gstelement_class,
+ &gst_rtp_vraw_pay_src_template);
+ gst_element_class_add_static_pad_template (gstelement_class,
+ &gst_rtp_vraw_pay_sink_template);
gst_element_class_set_static_metadata (gstelement_class,
"RTP Raw Video payloader", "Codec/Payloader/Network/RTP",
diff --git a/gst/rtpmanager/gstrtpbin.c b/gst/rtpmanager/gstrtpbin.c
index b62775729..9a0d20164 100644
--- a/gst/rtpmanager/gstrtpbin.c
+++ b/gst/rtpmanager/gstrtpbin.c
@@ -2320,20 +2320,20 @@ gst_rtp_bin_class_init (GstRtpBinClass * klass)
gstelement_class->release_pad = GST_DEBUG_FUNCPTR (gst_rtp_bin_release_pad);
/* sink pads */
- gst_element_class_add_pad_template (gstelement_class,
- gst_static_pad_template_get (&rtpbin_recv_rtp_sink_template));
- gst_element_class_add_pad_template (gstelement_class,
- gst_static_pad_template_get (&rtpbin_recv_rtcp_sink_template));
- gst_element_class_add_pad_template (gstelement_class,
- gst_static_pad_template_get (&rtpbin_send_rtp_sink_template));
+ gst_element_class_add_static_pad_template (gstelement_class,
+ &rtpbin_recv_rtp_sink_template);
+ gst_element_class_add_static_pad_template (gstelement_class,
+ &rtpbin_recv_rtcp_sink_template);
+ gst_element_class_add_static_pad_template (gstelement_class,
+ &rtpbin_send_rtp_sink_template);
/* src pads */
- gst_element_class_add_pad_template (gstelement_class,
- gst_static_pad_template_get (&rtpbin_recv_rtp_src_template));
- gst_element_class_add_pad_template (gstelement_class,
- gst_static_pad_template_get (&rtpbin_send_rtcp_src_template));
- gst_element_class_add_pad_template (gstelement_class,
- gst_static_pad_template_get (&rtpbin_send_rtp_src_template));
+ gst_element_class_add_static_pad_template (gstelement_class,
+ &rtpbin_recv_rtp_src_template);
+ gst_element_class_add_static_pad_template (gstelement_class,
+ &rtpbin_send_rtcp_src_template);
+ gst_element_class_add_static_pad_template (gstelement_class,
+ &rtpbin_send_rtp_src_template);
gst_element_class_set_static_metadata (gstelement_class, "RTP Bin",
"Filter/Network/RTP",
diff --git a/gst/rtpmanager/gstrtpdtmfmux.c b/gst/rtpmanager/gstrtpdtmfmux.c
index 9a9c5d901..cc6d74756 100644
--- a/gst/rtpmanager/gstrtpdtmfmux.c
+++ b/gst/rtpmanager/gstrtpdtmfmux.c
@@ -84,8 +84,8 @@ gst_rtp_dtmf_mux_class_init (GstRTPDTMFMuxClass * klass)
gstelement_class = (GstElementClass *) klass;
gstrtpmux_class = (GstRTPMuxClass *) klass;
- gst_element_class_add_pad_template (gstelement_class,
- gst_static_pad_template_get (&priority_sink_factory));
+ gst_element_class_add_static_pad_template (gstelement_class,
+ &priority_sink_factory);
gst_element_class_set_static_metadata (gstelement_class, "RTP muxer",
"Codec/Muxer",
diff --git a/gst/rtpmanager/gstrtpjitterbuffer.c b/gst/rtpmanager/gstrtpjitterbuffer.c
index 610eff210..65f7e149b 100644
--- a/gst/rtpmanager/gstrtpjitterbuffer.c
+++ b/gst/rtpmanager/gstrtpjitterbuffer.c
@@ -821,12 +821,12 @@ gst_rtp_jitter_buffer_class_init (GstRtpJitterBufferClass * klass)
gstelement_class->provide_clock =
GST_DEBUG_FUNCPTR (gst_rtp_jitter_buffer_provide_clock);
- gst_element_class_add_pad_template (gstelement_class,
- gst_static_pad_template_get (&gst_rtp_jitter_buffer_src_template));
- gst_element_class_add_pad_template (gstelement_class,
- gst_static_pad_template_get (&gst_rtp_jitter_buffer_sink_template));
- gst_element_class_add_pad_template (gstelement_class,
- gst_static_pad_template_get (&gst_rtp_jitter_buffer_sink_rtcp_template));
+ gst_element_class_add_static_pad_template (gstelement_class,
+ &gst_rtp_jitter_buffer_src_template);
+ gst_element_class_add_static_pad_template (gstelement_class,
+ &gst_rtp_jitter_buffer_sink_template);
+ gst_element_class_add_static_pad_template (gstelement_class,
+ &gst_rtp_jitter_buffer_sink_rtcp_template);
gst_element_class_set_static_metadata (gstelement_class,
"RTP packet jitter-buffer", "Filter/Network/RTP",
diff --git a/gst/rtpmanager/gstrtpmux.c b/gst/rtpmanager/gstrtpmux.c
index 69cafb479..cbb4e86b5 100644
--- a/gst/rtpmanager/gstrtpmux.c
+++ b/gst/rtpmanager/gstrtpmux.c
@@ -125,10 +125,8 @@ gst_rtp_mux_class_init (GstRTPMuxClass * klass)
gstelement_class = (GstElementClass *) klass;
- 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, "RTP muxer",
"Codec/Muxer",
diff --git a/gst/rtpmanager/gstrtpptdemux.c b/gst/rtpmanager/gstrtpptdemux.c
index d764bee69..9020a4412 100644
--- a/gst/rtpmanager/gstrtpptdemux.c
+++ b/gst/rtpmanager/gstrtpptdemux.c
@@ -206,10 +206,10 @@ gst_rtp_pt_demux_class_init (GstRtpPtDemuxClass * klass)
klass->clear_pt_map = GST_DEBUG_FUNCPTR (gst_rtp_pt_demux_clear_pt_map);
- gst_element_class_add_pad_template (gstelement_klass,
- gst_static_pad_template_get (&rtp_pt_demux_sink_template));
- gst_element_class_add_pad_template (gstelement_klass,
- gst_static_pad_template_get (&rtp_pt_demux_src_template));
+ gst_element_class_add_static_pad_template (gstelement_klass,
+ &rtp_pt_demux_sink_template);
+ gst_element_class_add_static_pad_template (gstelement_klass,
+ &rtp_pt_demux_src_template);
gst_element_class_set_static_metadata (gstelement_klass, "RTP Demux",
"Demux/Network/RTP",
diff --git a/gst/rtpmanager/gstrtprtxqueue.c b/gst/rtpmanager/gstrtprtxqueue.c
index 0566f74a6..2b1c54457 100644
--- a/gst/rtpmanager/gstrtprtxqueue.c
+++ b/gst/rtpmanager/gstrtprtxqueue.c
@@ -101,10 +101,8 @@ gst_rtp_rtx_queue_class_init (GstRTPRtxQueueClass * klass)
DEFAULT_MAX_SIZE_PACKETS,
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,
"RTP Retransmission Queue", "Codec",
diff --git a/gst/rtpmanager/gstrtprtxreceive.c b/gst/rtpmanager/gstrtprtxreceive.c
index 477372246..a667d1076 100644
--- a/gst/rtpmanager/gstrtprtxreceive.c
+++ b/gst/rtpmanager/gstrtprtxreceive.c
@@ -198,10 +198,8 @@ gst_rtp_rtx_receive_class_init (GstRtpRtxReceiveClass * klass)
"correctly associated with retransmission requests", 0, G_MAXUINT,
0, G_PARAM_READABLE | 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,
"RTP Retransmission receiver", "Codec",
diff --git a/gst/rtpmanager/gstrtprtxsend.c b/gst/rtpmanager/gstrtprtxsend.c
index 54c0a0c58..5fb400d76 100644
--- a/gst/rtpmanager/gstrtprtxsend.c
+++ b/gst/rtpmanager/gstrtprtxsend.c
@@ -191,10 +191,8 @@ gst_rtp_rtx_send_class_init (GstRtpRtxSendClass * klass)
" Number of retransmission packets sent", 0, G_MAXUINT,
0, G_PARAM_READABLE | 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,
"RTP Retransmission Sender", "Codec",
diff --git a/gst/rtpmanager/gstrtpsession.c b/gst/rtpmanager/gstrtpsession.c
index 4c41c5d91..ea19ce880 100644
--- a/gst/rtpmanager/gstrtpsession.c
+++ b/gst/rtpmanager/gstrtpsession.c
@@ -773,22 +773,22 @@ gst_rtp_session_class_init (GstRtpSessionClass * klass)
klass->clear_pt_map = GST_DEBUG_FUNCPTR (gst_rtp_session_clear_pt_map);
/* sink pads */
- gst_element_class_add_pad_template (gstelement_class,
- gst_static_pad_template_get (&rtpsession_recv_rtp_sink_template));
- gst_element_class_add_pad_template (gstelement_class,
- gst_static_pad_template_get (&rtpsession_recv_rtcp_sink_template));
- gst_element_class_add_pad_template (gstelement_class,
- gst_static_pad_template_get (&rtpsession_send_rtp_sink_template));
+ gst_element_class_add_static_pad_template (gstelement_class,
+ &rtpsession_recv_rtp_sink_template);
+ gst_element_class_add_static_pad_template (gstelement_class,
+ &rtpsession_recv_rtcp_sink_template);
+ gst_element_class_add_static_pad_template (gstelement_class,
+ &rtpsession_send_rtp_sink_template);
/* src pads */
- gst_element_class_add_pad_template (gstelement_class,
- gst_static_pad_template_get (&rtpsession_recv_rtp_src_template));
- gst_element_class_add_pad_template (gstelement_class,
- gst_static_pad_template_get (&rtpsession_sync_src_template));
- gst_element_class_add_pad_template (gstelement_class,
- gst_static_pad_template_get (&rtpsession_send_rtp_src_template));
- gst_element_class_add_pad_template (gstelement_class,
- gst_static_pad_template_get (&rtpsession_send_rtcp_src_template));
+ gst_element_class_add_static_pad_template (gstelement_class,
+ &rtpsession_recv_rtp_src_template);
+ gst_element_class_add_static_pad_template (gstelement_class,
+ &rtpsession_sync_src_template);
+ gst_element_class_add_static_pad_template (gstelement_class,
+ &rtpsession_send_rtp_src_template);
+ gst_element_class_add_static_pad_template (gstelement_class,
+ &rtpsession_send_rtcp_src_template);
gst_element_class_set_static_metadata (gstelement_class, "RTP Session",
"Filter/Network/RTP",
diff --git a/gst/rtpmanager/gstrtpssrcdemux.c b/gst/rtpmanager/gstrtpssrcdemux.c
index 762e959fb..c4a3c4301 100644
--- a/gst/rtpmanager/gstrtpssrcdemux.c
+++ b/gst/rtpmanager/gstrtpssrcdemux.c
@@ -421,14 +421,14 @@ gst_rtp_ssrc_demux_class_init (GstRtpSsrcDemuxClass * klass)
gstrtpssrcdemux_klass->clear_ssrc =
GST_DEBUG_FUNCPTR (gst_rtp_ssrc_demux_clear_ssrc);
- gst_element_class_add_pad_template (gstelement_klass,
- gst_static_pad_template_get (&rtp_ssrc_demux_sink_template));
- gst_element_class_add_pad_template (gstelement_klass,
- gst_static_pad_template_get (&rtp_ssrc_demux_rtcp_sink_template));
- gst_element_class_add_pad_template (gstelement_klass,
- gst_static_pad_template_get (&rtp_ssrc_demux_src_template));
- gst_element_class_add_pad_template (gstelement_klass,
- gst_static_pad_template_get (&rtp_ssrc_demux_rtcp_src_template));
+ gst_element_class_add_static_pad_template (gstelement_klass,
+ &rtp_ssrc_demux_sink_template);
+ gst_element_class_add_static_pad_template (gstelement_klass,
+ &rtp_ssrc_demux_rtcp_sink_template);
+ gst_element_class_add_static_pad_template (gstelement_klass,
+ &rtp_ssrc_demux_src_template);
+ gst_element_class_add_static_pad_template (gstelement_klass,
+ &rtp_ssrc_demux_rtcp_src_template);
gst_element_class_set_static_metadata (gstelement_klass, "RTP SSRC Demux",
"Demux/Network/RTP",
diff --git a/gst/rtsp/gstrtpdec.c b/gst/rtsp/gstrtpdec.c
index e24927bf4..5813dbe67 100644
--- a/gst/rtsp/gstrtpdec.c
+++ b/gst/rtsp/gstrtpdec.c
@@ -325,15 +325,15 @@ gst_rtp_dec_class_init (GstRTPDecClass * g_class)
gstelement_class->release_pad = GST_DEBUG_FUNCPTR (gst_rtp_dec_release_pad);
/* sink pads */
- gst_element_class_add_pad_template (gstelement_class,
- gst_static_pad_template_get (&gst_rtp_dec_recv_rtp_sink_template));
- gst_element_class_add_pad_template (gstelement_class,
- gst_static_pad_template_get (&gst_rtp_dec_recv_rtcp_sink_template));
+ gst_element_class_add_static_pad_template (gstelement_class,
+ &gst_rtp_dec_recv_rtp_sink_template);
+ gst_element_class_add_static_pad_template (gstelement_class,
+ &gst_rtp_dec_recv_rtcp_sink_template);
/* src pads */
- gst_element_class_add_pad_template (gstelement_class,
- gst_static_pad_template_get (&gst_rtp_dec_recv_rtp_src_template));
- gst_element_class_add_pad_template (gstelement_class,
- gst_static_pad_template_get (&gst_rtp_dec_rtcp_src_template));
+ gst_element_class_add_static_pad_template (gstelement_class,
+ &gst_rtp_dec_recv_rtp_src_template);
+ gst_element_class_add_static_pad_template (gstelement_class,
+ &gst_rtp_dec_rtcp_src_template);
gst_element_class_set_static_metadata (gstelement_class, "RTP Decoder",
"Codec/Parser/Network",
diff --git a/gst/rtsp/gstrtspsrc.c b/gst/rtsp/gstrtspsrc.c
index 8ff50652a..b41666d5b 100644
--- a/gst/rtsp/gstrtspsrc.c
+++ b/gst/rtsp/gstrtspsrc.c
@@ -828,8 +828,7 @@ gst_rtspsrc_class_init (GstRTSPSrcClass * klass)
gstelement_class->provide_clock = gst_rtspsrc_provide_clock;
gstelement_class->change_state = gst_rtspsrc_change_state;
- gst_element_class_add_pad_template (gstelement_class,
- gst_static_pad_template_get (&rtptemplate));
+ gst_element_class_add_static_pad_template (gstelement_class, &rtptemplate);
gst_element_class_set_static_metadata (gstelement_class,
"RTSP packet receiver", "Source/Network",
diff --git a/gst/shapewipe/gstshapewipe.c b/gst/shapewipe/gstshapewipe.c
index 1a82a504c..3a0dfdaaf 100644
--- a/gst/shapewipe/gstshapewipe.c
+++ b/gst/shapewipe/gstshapewipe.c
@@ -156,12 +156,12 @@ gst_shape_wipe_class_init (GstShapeWipeClass * klass)
"Adds a shape wipe transition to a video stream",
"Sebastian Dröge <sebastian.droege@collabora.co.uk>");
- gst_element_class_add_pad_template (gstelement_class,
- gst_static_pad_template_get (&video_sink_pad_template));
- gst_element_class_add_pad_template (gstelement_class,
- gst_static_pad_template_get (&mask_sink_pad_template));
- gst_element_class_add_pad_template (gstelement_class,
- gst_static_pad_template_get (&src_pad_template));
+ gst_element_class_add_static_pad_template (gstelement_class,
+ &video_sink_pad_template);
+ gst_element_class_add_static_pad_template (gstelement_class,
+ &mask_sink_pad_template);
+ gst_element_class_add_static_pad_template (gstelement_class,
+ &src_pad_template);
}
static void
diff --git a/gst/smpte/gstsmpte.c b/gst/smpte/gstsmpte.c
index 33d428427..18c522c8d 100644
--- a/gst/smpte/gstsmpte.c
+++ b/gst/smpte/gstsmpte.c
@@ -189,12 +189,12 @@ gst_smpte_class_init (GstSMPTEClass * klass)
gstelement_class->change_state = GST_DEBUG_FUNCPTR (gst_smpte_change_state);
- gst_element_class_add_pad_template (gstelement_class,
- gst_static_pad_template_get (&gst_smpte_sink1_template));
- gst_element_class_add_pad_template (gstelement_class,
- gst_static_pad_template_get (&gst_smpte_sink2_template));
- gst_element_class_add_pad_template (gstelement_class,
- gst_static_pad_template_get (&gst_smpte_src_template));
+ gst_element_class_add_static_pad_template (gstelement_class,
+ &gst_smpte_sink1_template);
+ gst_element_class_add_static_pad_template (gstelement_class,
+ &gst_smpte_sink2_template);
+ gst_element_class_add_static_pad_template (gstelement_class,
+ &gst_smpte_src_template);
gst_element_class_set_static_metadata (gstelement_class, "SMPTE transitions",
"Filter/Editor/Video",
"Apply the standard SMPTE transitions on video images",
diff --git a/gst/smpte/gstsmptealpha.c b/gst/smpte/gstsmptealpha.c
index 06c56aece..750748f25 100644
--- a/gst/smpte/gstsmptealpha.c
+++ b/gst/smpte/gstsmptealpha.c
@@ -205,10 +205,10 @@ gst_smpte_alpha_class_init (GstSMPTEAlphaClass * klass)
vfilter_class->transform_frame =
GST_DEBUG_FUNCPTR (gst_smpte_alpha_transform_frame);
- gst_element_class_add_pad_template (element_class,
- gst_static_pad_template_get (&gst_smpte_alpha_sink_template));
- gst_element_class_add_pad_template (element_class,
- gst_static_pad_template_get (&gst_smpte_alpha_src_template));
+ gst_element_class_add_static_pad_template (element_class,
+ &gst_smpte_alpha_sink_template);
+ gst_element_class_add_static_pad_template (element_class,
+ &gst_smpte_alpha_src_template);
gst_element_class_set_static_metadata (element_class, "SMPTE transitions",
"Filter/Editor/Video",
"Apply the standard SMPTE transitions as alpha on video images",
diff --git a/gst/udp/gstdynudpsink.c b/gst/udp/gstdynudpsink.c
index f9cd5a258..78e6d75c7 100644
--- a/gst/udp/gstdynudpsink.c
+++ b/gst/udp/gstdynudpsink.c
@@ -130,8 +130,7 @@ gst_dynudpsink_class_init (GstDynUDPSinkClass * klass)
"Port to bind the socket to", 0, G_MAXUINT16,
UDP_DEFAULT_BIND_PORT, 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_static_pad_template (gstelement_class, &sink_template);
gst_element_class_set_static_metadata (gstelement_class, "UDP packet sender",
"Sink/Network",
diff --git a/gst/udp/gstmultiudpsink.c b/gst/udp/gstmultiudpsink.c
index 905e3fddc..656296ad4 100644
--- a/gst/udp/gstmultiudpsink.c
+++ b/gst/udp/gstmultiudpsink.c
@@ -350,8 +350,7 @@ gst_multiudpsink_class_init (GstMultiUDPSinkClass * klass)
"Port to bind the socket to", 0, G_MAXUINT16,
DEFAULT_BIND_PORT, 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_static_pad_template (gstelement_class, &sink_template);
gst_element_class_set_static_metadata (gstelement_class, "UDP packet sender",
"Sink/Network",
diff --git a/gst/udp/gstudpsrc.c b/gst/udp/gstudpsrc.c
index 1525b0505..904090461 100644
--- a/gst/udp/gstudpsrc.c
+++ b/gst/udp/gstudpsrc.c
@@ -274,8 +274,7 @@ gst_udpsrc_class_init (GstUDPSrcClass * klass)
" FALSE = disable", UDP_DEFAULT_LOOP,
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
- 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);
gst_element_class_set_static_metadata (gstelement_class,
"UDP packet receiver", "Source/Network",
diff --git a/gst/videobox/gstvideobox.c b/gst/videobox/gstvideobox.c
index 4c0ed36e1..f8f984c5a 100644
--- a/gst/videobox/gstvideobox.c
+++ b/gst/videobox/gstvideobox.c
@@ -2528,10 +2528,10 @@ gst_video_box_class_init (GstVideoBoxClass * klass)
"Resizes a video by adding borders or cropping",
"Wim Taymans <wim@fluendo.com>");
- gst_element_class_add_pad_template (element_class,
- gst_static_pad_template_get (&gst_video_box_sink_template));
- gst_element_class_add_pad_template (element_class,
- gst_static_pad_template_get (&gst_video_box_src_template));
+ gst_element_class_add_static_pad_template (element_class,
+ &gst_video_box_sink_template);
+ gst_element_class_add_static_pad_template (element_class,
+ &gst_video_box_src_template);
}
static void
diff --git a/gst/videocrop/gstaspectratiocrop.c b/gst/videocrop/gstaspectratiocrop.c
index 037d32645..2c1d9d774 100644
--- a/gst/videocrop/gstaspectratiocrop.c
+++ b/gst/videocrop/gstaspectratiocrop.c
@@ -193,10 +193,8 @@ gst_aspect_ratio_crop_class_init (GstAspectRatioCropClass * klass)
"Crops video into a user-defined aspect-ratio",
"Thijs Vermeir <thijsvermeir@gmail.com>");
- 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);
}
static void
diff --git a/gst/videocrop/gstvideocrop.c b/gst/videocrop/gstvideocrop.c
index 99360d5dd..511161e91 100644
--- a/gst/videocrop/gstvideocrop.c
+++ b/gst/videocrop/gstvideocrop.c
@@ -194,10 +194,8 @@ gst_video_crop_class_init (GstVideoCropClass * klass)
"Pixels to crop at bottom (-1 to auto-crop)", -1, G_MAXINT, 0,
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
- 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_static_metadata (element_class, "Crop",
"Filter/Effect/Video",
"Crops video into a user-defined region",
diff --git a/gst/videofilter/gstgamma.c b/gst/videofilter/gstgamma.c
index 0e143b648..fd4409f33 100644
--- a/gst/videofilter/gstgamma.c
+++ b/gst/videofilter/gstgamma.c
@@ -125,10 +125,10 @@ gst_gamma_class_init (GstGammaClass * g_class)
"Video gamma correction", "Filter/Effect/Video",
"Adjusts gamma on a video stream", "Arwed v. Merkatz <v.merkatz@gmx.net");
- gst_element_class_add_pad_template (gstelement_class,
- gst_static_pad_template_get (&gst_gamma_sink_template));
- gst_element_class_add_pad_template (gstelement_class,
- gst_static_pad_template_get (&gst_gamma_src_template));
+ gst_element_class_add_static_pad_template (gstelement_class,
+ &gst_gamma_sink_template);
+ gst_element_class_add_static_pad_template (gstelement_class,
+ &gst_gamma_src_template);
trans_class->before_transform =
GST_DEBUG_FUNCPTR (gst_gamma_before_transform);
diff --git a/gst/videofilter/gstvideobalance.c b/gst/videofilter/gstvideobalance.c
index 49cad5177..068bcd7bc 100644
--- a/gst/videofilter/gstvideobalance.c
+++ b/gst/videofilter/gstvideobalance.c
@@ -598,10 +598,10 @@ gst_video_balance_class_init (GstVideoBalanceClass * klass)
"Adjusts brightness, contrast, hue, saturation on a video stream",
"David Schleef <ds@schleef.org>");
- gst_element_class_add_pad_template (gstelement_class,
- gst_static_pad_template_get (&gst_video_balance_sink_template));
- gst_element_class_add_pad_template (gstelement_class,
- gst_static_pad_template_get (&gst_video_balance_src_template));
+ gst_element_class_add_static_pad_template (gstelement_class,
+ &gst_video_balance_sink_template);
+ gst_element_class_add_static_pad_template (gstelement_class,
+ &gst_video_balance_src_template);
trans_class->before_transform =
GST_DEBUG_FUNCPTR (gst_video_balance_before_transform);
diff --git a/gst/videofilter/gstvideoflip.c b/gst/videofilter/gstvideoflip.c
index 2111cef38..beccd9d1a 100644
--- a/gst/videofilter/gstvideoflip.c
+++ b/gst/videofilter/gstvideoflip.c
@@ -1284,10 +1284,10 @@ gst_video_flip_class_init (GstVideoFlipClass * klass)
"Filter/Effect/Video",
"Flips and rotates video", "David Schleef <ds@schleef.org>");
- gst_element_class_add_pad_template (gstelement_class,
- gst_static_pad_template_get (&gst_video_flip_sink_template));
- gst_element_class_add_pad_template (gstelement_class,
- gst_static_pad_template_get (&gst_video_flip_src_template));
+ gst_element_class_add_static_pad_template (gstelement_class,
+ &gst_video_flip_sink_template);
+ gst_element_class_add_static_pad_template (gstelement_class,
+ &gst_video_flip_src_template);
trans_class->transform_caps =
GST_DEBUG_FUNCPTR (gst_video_flip_transform_caps);
diff --git a/gst/videofilter/gstvideomedian.c b/gst/videofilter/gstvideomedian.c
index a78939a9d..042cd23b1 100644
--- a/gst/videofilter/gstvideomedian.c
+++ b/gst/videofilter/gstvideomedian.c
@@ -109,13 +109,12 @@ gst_video_median_class_init (GstVideoMedianClass * klass)
"luminance", DEFAULT_LUM_ONLY,
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
- gst_element_class_add_pad_template (gstelement_class,
- gst_static_pad_template_get (&video_median_sink_factory));
- gst_element_class_add_pad_template (gstelement_class,
- gst_static_pad_template_get (&video_median_src_factory));
+ gst_element_class_add_static_pad_template (gstelement_class,
+ &video_median_sink_factory);
+ gst_element_class_add_static_pad_template (gstelement_class,
+ &video_median_src_factory);
gst_element_class_set_static_metadata (gstelement_class, "Median effect",
- "Filter/Effect/Video",
- "Apply a median filter to an image",
+ "Filter/Effect/Video", "Apply a median filter to an image",
"Wim Taymans <wim.taymans@gmail.com>");
vfilter_class->transform_frame =
diff --git a/gst/videomixer/videomixer2.c b/gst/videomixer/videomixer2.c
index 25fc35ae3..3129634d4 100644
--- a/gst/videomixer/videomixer2.c
+++ b/gst/videomixer/videomixer2.c
@@ -2222,10 +2222,8 @@ gst_videomixer2_class_init (GstVideoMixer2Class * klass)
gstelement_class->change_state =
GST_DEBUG_FUNCPTR (gst_videomixer2_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, "Video mixer 2",
"Filter/Editor/Video/Compositor",
diff --git a/gst/wavenc/gstwavenc.c b/gst/wavenc/gstwavenc.c
index aff717fdb..94a8bd0d0 100644
--- a/gst/wavenc/gstwavenc.c
+++ b/gst/wavenc/gstwavenc.c
@@ -139,10 +139,8 @@ gst_wavenc_class_init (GstWavEncClass * klass)
"Codec/Muxer/Audio",
"Encode raw audio into WAV", "Iain Holmes <iain@prettypeople.org>");
- 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_DEBUG_CATEGORY_INIT (wavenc_debug, "wavenc", 0, "WAV encoder element");
}
diff --git a/gst/wavparse/gstwavparse.c b/gst/wavparse/gstwavparse.c
index 138ec1646..16483b7e5 100644
--- a/gst/wavparse/gstwavparse.c
+++ b/gst/wavparse/gstwavparse.c
@@ -188,8 +188,8 @@ gst_wavparse_class_init (GstWavParseClass * klass)
gstelement_class->send_event = gst_wavparse_send_event;
/* register pads */
- gst_element_class_add_pad_template (gstelement_class,
- gst_static_pad_template_get (&sink_template_factory));
+ gst_element_class_add_static_pad_template (gstelement_class,
+ &sink_template_factory);
src_template = gst_pad_template_new ("src", GST_PAD_SRC,
GST_PAD_ALWAYS, gst_riff_create_audio_template_caps ());
diff --git a/gst/y4m/gsty4mencode.c b/gst/y4m/gsty4mencode.c
index 7c32af22f..2a113bc93 100644
--- a/gst/y4m/gsty4mencode.c
+++ b/gst/y4m/gsty4mencode.c
@@ -97,10 +97,10 @@ gst_y4m_encode_class_init (GstY4mEncodeClass * klass)
element_class->change_state = GST_DEBUG_FUNCPTR (gst_y4m_encode_change_state);
- gst_element_class_add_pad_template (element_class,
- gst_static_pad_template_get (&y4mencode_src_factory));
- gst_element_class_add_pad_template (element_class,
- gst_static_pad_template_get (&y4mencode_sink_factory));
+ gst_element_class_add_static_pad_template (element_class,
+ &y4mencode_src_factory);
+ gst_element_class_add_static_pad_template (element_class,
+ &y4mencode_sink_factory);
gst_element_class_set_static_metadata (element_class,
"YUV4MPEG video encoder", "Codec/Encoder/Video",