diff options
author | Vincent Penquerc'h <vincent.penquerch@collabora.co.uk> | 2011-11-28 13:08:27 +0000 |
---|---|---|
committer | Vincent Penquerc'h <vincent.penquerch@collabora.co.uk> | 2011-11-28 13:08:27 +0000 |
commit | 7521b597f4dc49d8d168f368f0e7ebaf98a72156 (patch) | |
tree | 0033ba79e1bf8add58e1dcecffa95f73010bbd10 /gst/coloreffects | |
parent | 26d6add9457f00ce8ec13844368466f0e3816e5d (diff) | |
download | gstreamer-plugins-bad-7521b597f4dc49d8d168f368f0e7ebaf98a72156.tar.gz |
various: fix pad template ref leaks
https://bugzilla.gnome.org/show_bug.cgi?id=662664
Diffstat (limited to 'gst/coloreffects')
-rw-r--r-- | gst/coloreffects/gstchromahold.c | 8 | ||||
-rw-r--r-- | gst/coloreffects/gstcoloreffects.c | 8 |
2 files changed, 8 insertions, 8 deletions
diff --git a/gst/coloreffects/gstchromahold.c b/gst/coloreffects/gstchromahold.c index a563ab3a6..e6e7c4028 100644 --- a/gst/coloreffects/gstchromahold.c +++ b/gst/coloreffects/gstchromahold.c @@ -128,10 +128,10 @@ gst_chroma_hold_base_init (gpointer g_class) "Removes all color information except for one color", "Sebastian Dröge <sebastian.droege@collabora.co.uk>"); - gst_element_class_add_pad_template (element_class, - gst_static_pad_template_get (&gst_chroma_hold_sink_template)); - gst_element_class_add_pad_template (element_class, - gst_static_pad_template_get (&gst_chroma_hold_src_template)); + gst_element_class_add_static_pad_template (element_class, + &gst_chroma_hold_sink_template); + gst_element_class_add_static_pad_template (element_class, + &gst_chroma_hold_src_template); GST_DEBUG_CATEGORY_INIT (gst_chroma_hold_debug, "chromahold", 0, "chromahold - Removes all color information except for one color"); diff --git a/gst/coloreffects/gstcoloreffects.c b/gst/coloreffects/gstcoloreffects.c index df78b8660..0941df195 100644 --- a/gst/coloreffects/gstcoloreffects.c +++ b/gst/coloreffects/gstcoloreffects.c @@ -506,10 +506,10 @@ gst_color_effects_base_init (gpointer g_class) "Color Look-up Table filter", "Filippo Argiolas <filippo.argiolas@gmail.com>"); - gst_element_class_add_pad_template (element_class, - gst_static_pad_template_get (&gst_color_effects_sink_template)); - gst_element_class_add_pad_template (element_class, - gst_static_pad_template_get (&gst_color_effects_src_template)); + gst_element_class_add_static_pad_template (element_class, + &gst_color_effects_sink_template); + gst_element_class_add_static_pad_template (element_class, + &gst_color_effects_src_template); } static void |