diff options
author | Vineeth TM <vineeth.tm@samsung.com> | 2016-03-04 15:50:26 +0900 |
---|---|---|
committer | Sebastian Dröge <sebastian@centricular.com> | 2016-03-24 14:56:51 +0200 |
commit | 8cdfb13658a069cf8c45a3265bf865849d3dc8e9 (patch) | |
tree | 93bc4a0be9c90b3e4d086328781411d9798933d8 /ext/rsvg | |
parent | c25782921324cb9ff7bfcc757257dfde05f95df3 (diff) | |
download | gstreamer-plugins-bad-8cdfb13658a069cf8c45a3265bf865849d3dc8e9.tar.gz |
bad: use new gst_element_class_add_static_pad_template()
https://bugzilla.gnome.org/show_bug.cgi?id=763081
Diffstat (limited to 'ext/rsvg')
-rw-r--r-- | ext/rsvg/gstrsvgdec.c | 6 | ||||
-rw-r--r-- | ext/rsvg/gstrsvgoverlay.c | 11 |
2 files changed, 7 insertions, 10 deletions
diff --git a/ext/rsvg/gstrsvgdec.c b/ext/rsvg/gstrsvgdec.c index d87c6caed..5d5fc8ef6 100644 --- a/ext/rsvg/gstrsvgdec.c +++ b/ext/rsvg/gstrsvgdec.c @@ -86,10 +86,8 @@ gst_rsvg_dec_class_init (GstRsvgDecClass * klass) "Uses librsvg to decode SVG images", "Sebastian Dröge <sebastian.droege@collabora.co.uk>"); - gst_element_class_add_pad_template (element_class, - gst_static_pad_template_get (&sink_factory)); - gst_element_class_add_pad_template (element_class, - gst_static_pad_template_get (&src_factory)); + gst_element_class_add_static_pad_template (element_class, &sink_factory); + gst_element_class_add_static_pad_template (element_class, &src_factory); gobject_class->finalize = gst_rsvg_dec_finalize; video_decoder_class->stop = GST_DEBUG_FUNCPTR (gst_rsvg_dec_stop); diff --git a/ext/rsvg/gstrsvgoverlay.c b/ext/rsvg/gstrsvgoverlay.c index 69f99add0..b467dc875 100644 --- a/ext/rsvg/gstrsvgoverlay.c +++ b/ext/rsvg/gstrsvgoverlay.c @@ -451,12 +451,11 @@ gst_rsvg_overlay_class_init (GstRsvgOverlayClass * klass) GstVideoFilterClass *videofilter_class = GST_VIDEO_FILTER_CLASS (klass); GstElementClass *element_class = GST_ELEMENT_CLASS (klass); - 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 (&video_sink_template)); - gst_element_class_add_pad_template (element_class, - gst_static_pad_template_get (&data_sink_template)); + gst_element_class_add_static_pad_template (element_class, &src_template); + gst_element_class_add_static_pad_template (element_class, + &video_sink_template); + gst_element_class_add_static_pad_template (element_class, + &data_sink_template); gst_element_class_set_static_metadata (element_class, "RSVG overlay", "Filter/Editor/Video", |