diff --git a/ext/vp8/gstvp8dec.c b/ext/vp8/gstvp8dec.c index 1172ac96e2..57dd6bbf4b 100644 --- a/ext/vp8/gstvp8dec.c +++ b/ext/vp8/gstvp8dec.c @@ -160,10 +160,10 @@ gst_vp8_dec_class_init (GstVP8DecClass * klass) 0, 16, DEFAULT_NOISE_LEVEL, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); - gst_element_class_add_pad_template (element_class, - gst_static_pad_template_get (&gst_vp8_dec_src_template)); - gst_element_class_add_pad_template (element_class, - gst_static_pad_template_get (&gst_vp8_dec_sink_template)); + gst_element_class_add_static_pad_template (element_class, + &gst_vp8_dec_src_template); + gst_element_class_add_static_pad_template (element_class, + &gst_vp8_dec_sink_template); gst_element_class_set_details_simple (element_class, "On2 VP8 Decoder", diff --git a/ext/vp8/gstvp8enc.c b/ext/vp8/gstvp8enc.c index 7a18328438..eb6d61b61c 100644 --- a/ext/vp8/gstvp8enc.c +++ b/ext/vp8/gstvp8enc.c @@ -267,10 +267,10 @@ gst_vp8_enc_class_init (GstVP8EncClass * klass) gobject_class->get_property = gst_vp8_enc_get_property; gobject_class->finalize = gst_vp8_enc_finalize; - gst_element_class_add_pad_template (element_class, - gst_static_pad_template_get (&gst_vp8_enc_src_template)); - gst_element_class_add_pad_template (element_class, - gst_static_pad_template_get (&gst_vp8_enc_sink_template)); + gst_element_class_add_static_pad_template (element_class, + &gst_vp8_enc_src_template); + gst_element_class_add_static_pad_template (element_class, + &gst_vp8_enc_sink_template); gst_element_class_set_details_simple (element_class, "On2 VP8 Encoder",