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 /ext/mplex | |
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 'ext/mplex')
-rw-r--r-- | ext/mplex/gstmplex.cc | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/ext/mplex/gstmplex.cc b/ext/mplex/gstmplex.cc index fca40e38b..ac94e7c29 100644 --- a/ext/mplex/gstmplex.cc +++ b/ext/mplex/gstmplex.cc @@ -131,12 +131,11 @@ gst_mplex_base_init (gpointer klass) "Ronald Bultje <rbultje@ronald.bitfreak.net>\n" "Mark Nauwelaerts <mnauw@users.sourceforge.net>"); - gst_element_class_add_pad_template (element_class, - gst_static_pad_template_get (&src_templ)); - gst_element_class_add_pad_template (element_class, - gst_static_pad_template_get (&video_sink_templ)); - gst_element_class_add_pad_template (element_class, - gst_static_pad_template_get (&audio_sink_templ)); + gst_element_class_add_static_pad_template (element_class, &src_templ); + gst_element_class_add_static_pad_template (element_class, + &video_sink_templ); + gst_element_class_add_static_pad_template (element_class, + &audio_sink_templ); } static void |