diff --git a/ext/lame/gstlame.c b/ext/lame/gstlame.c index 349d290817..f36a0b26e5 100644 --- a/ext/lame/gstlame.c +++ b/ext/lame/gstlame.c @@ -354,10 +354,10 @@ gst_lame_base_init (gpointer g_class) { GstElementClass *element_class = GST_ELEMENT_CLASS (g_class); - gst_element_class_add_pad_template (element_class, - gst_static_pad_template_get (&gst_lame_src_template)); - gst_element_class_add_pad_template (element_class, - gst_static_pad_template_get (&gst_lame_sink_template)); + gst_element_class_add_static_pad_template (element_class, + &gst_lame_src_template); + gst_element_class_add_static_pad_template (element_class, + &gst_lame_sink_template); gst_element_class_set_details_simple (element_class, "L.A.M.E. mp3 encoder", "Codec/Encoder/Audio", "High-quality free MP3 encoder (deprecated)", diff --git a/ext/lame/gstlamemp3enc.c b/ext/lame/gstlamemp3enc.c index 40f9a6fc19..d2966973d2 100644 --- a/ext/lame/gstlamemp3enc.c +++ b/ext/lame/gstlamemp3enc.c @@ -215,10 +215,10 @@ gst_lamemp3enc_base_init (gpointer g_class) { GstElementClass *element_class = GST_ELEMENT_CLASS (g_class); - gst_element_class_add_pad_template (element_class, - gst_static_pad_template_get (&gst_lamemp3enc_src_template)); - gst_element_class_add_pad_template (element_class, - gst_static_pad_template_get (&gst_lamemp3enc_sink_template)); + gst_element_class_add_static_pad_template (element_class, + &gst_lamemp3enc_src_template); + gst_element_class_add_static_pad_template (element_class, + &gst_lamemp3enc_sink_template); gst_element_class_set_details_simple (element_class, "L.A.M.E. mp3 encoder", "Codec/Encoder/Audio", "High-quality free MP3 encoder",