summaryrefslogtreecommitdiff
path: root/gst/law
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/law
parent2b8b5f22465850b306b93c8317ac0f4ff10ca432 (diff)
downloadgstreamer-plugins-good-1071309870735ce1f167a2e53c224636812e6eaf.tar.gz
good: use new gst_element_class_add_static_pad_template()
https://bugzilla.gnome.org/show_bug.cgi?id=763076
Diffstat (limited to 'gst/law')
-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
4 files changed, 16 insertions, 16 deletions
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",