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 /gst/smooth | |
parent | c25782921324cb9ff7bfcc757257dfde05f95df3 (diff) |
bad: use new gst_element_class_add_static_pad_template()
https://bugzilla.gnome.org/show_bug.cgi?id=763081
Diffstat (limited to 'gst/smooth')
-rw-r--r-- | gst/smooth/gstsmooth.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/gst/smooth/gstsmooth.c b/gst/smooth/gstsmooth.c index cfdf51a36..3bc233ae0 100644 --- a/gst/smooth/gstsmooth.c +++ b/gst/smooth/gstsmooth.c @@ -89,13 +89,12 @@ gst_smooth_class_init (GstSmoothClass * klass) g_param_spec_boolean ("luma-only", "luma-only", "only filter luma part", TRUE, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); - gst_element_class_add_pad_template (gstelement_class, - gst_static_pad_template_get (&gst_smooth_sink_template)); - gst_element_class_add_pad_template (gstelement_class, - gst_static_pad_template_get (&gst_smooth_src_template)); + gst_element_class_add_static_pad_template (gstelement_class, + &gst_smooth_sink_template); + gst_element_class_add_static_pad_template (gstelement_class, + &gst_smooth_src_template); gst_element_class_set_static_metadata (gstelement_class, "Smooth effect", - "Filter/Effect/Video", - "Apply a smooth filter to an image", + "Filter/Effect/Video", "Apply a smooth filter to an image", "Wim Taymans <wim.taymans@chello.be>"); vfilter_class->transform_frame = |