diff options
author | Vineeth TM <vineeth.tm@samsung.com> | 2016-03-04 10:30:12 +0900 |
---|---|---|
committer | Sebastian Dröge <sebastian@centricular.com> | 2016-03-24 14:32:20 +0200 |
commit | 1071309870735ce1f167a2e53c224636812e6eaf (patch) | |
tree | 166ac197d98639553c4d9f437dfe53676f9340b1 /ext/speex | |
parent | 2b8b5f22465850b306b93c8317ac0f4ff10ca432 (diff) |
good: use new gst_element_class_add_static_pad_template()
https://bugzilla.gnome.org/show_bug.cgi?id=763076
Diffstat (limited to 'ext/speex')
-rw-r--r-- | ext/speex/gstspeexdec.c | 8 | ||||
-rw-r--r-- | ext/speex/gstspeexenc.c | 6 |
2 files changed, 6 insertions, 8 deletions
diff --git a/ext/speex/gstspeexdec.c b/ext/speex/gstspeexdec.c index daceaeea4..cc123ce06 100644 --- a/ext/speex/gstspeexdec.c +++ b/ext/speex/gstspeexdec.c @@ -114,10 +114,10 @@ gst_speex_dec_class_init (GstSpeexDecClass * klass) g_param_spec_boolean ("enh", "Enh", "Enable perceptual enhancement", DEFAULT_ENH, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); - gst_element_class_add_pad_template (gstelement_class, - gst_static_pad_template_get (&speex_dec_src_factory)); - gst_element_class_add_pad_template (gstelement_class, - gst_static_pad_template_get (&speex_dec_sink_factory)); + gst_element_class_add_static_pad_template (gstelement_class, + &speex_dec_src_factory); + gst_element_class_add_static_pad_template (gstelement_class, + &speex_dec_sink_factory); gst_element_class_set_static_metadata (gstelement_class, "Speex audio decoder", "Codec/Decoder/Audio", "decode speex streams to audio", "Wim Taymans <wim@fluendo.com>"); diff --git a/ext/speex/gstspeexenc.c b/ext/speex/gstspeexenc.c index 31712b687..4266af63b 100644 --- a/ext/speex/gstspeexenc.c +++ b/ext/speex/gstspeexenc.c @@ -211,10 +211,8 @@ gst_speex_enc_class_init (GstSpeexEncClass * klass) "The last status message", NULL, 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, "Speex audio encoder", "Codec/Encoder/Audio", "Encodes audio in Speex format", "Wim Taymans <wim@fluendo.com>"); |