summaryrefslogtreecommitdiff
path: root/ext/modplug/gstmodplug.cc
diff options
context:
space:
mode:
authorVincent Penquerc'h <vincent.penquerch@collabora.co.uk>2011-11-28 13:08:27 +0000
committerVincent Penquerc'h <vincent.penquerch@collabora.co.uk>2011-11-28 13:08:27 +0000
commit7521b597f4dc49d8d168f368f0e7ebaf98a72156 (patch)
tree0033ba79e1bf8add58e1dcecffa95f73010bbd10 /ext/modplug/gstmodplug.cc
parent26d6add9457f00ce8ec13844368466f0e3816e5d (diff)
downloadgstreamer-plugins-bad-7521b597f4dc49d8d168f368f0e7ebaf98a72156.tar.gz
various: fix pad template ref leaks
https://bugzilla.gnome.org/show_bug.cgi?id=662664
Diffstat (limited to 'ext/modplug/gstmodplug.cc')
-rw-r--r--ext/modplug/gstmodplug.cc9
1 files changed, 4 insertions, 5 deletions
diff --git a/ext/modplug/gstmodplug.cc b/ext/modplug/gstmodplug.cc
index 75988fd75..09dc5104c 100644
--- a/ext/modplug/gstmodplug.cc
+++ b/ext/modplug/gstmodplug.cc
@@ -149,10 +149,10 @@ gst_modplug_base_init (gpointer g_class)
{
GstElementClass *element_class = GST_ELEMENT_CLASS (g_class);
- gst_element_class_add_pad_template (element_class,
- gst_static_pad_template_get (&modplug_sink_template_factory));
- gst_element_class_add_pad_template (element_class,
- gst_static_pad_template_get (&modplug_src_template_factory));
+ gst_element_class_add_static_pad_template (element_class,
+ &modplug_sink_template_factory);
+ gst_element_class_add_static_pad_template (element_class,
+ &modplug_src_template_factory);
gst_element_class_set_details_simple (element_class, "ModPlug",
"Codec/Decoder/Audio", "Module decoder based on modplug engine",
@@ -379,7 +379,6 @@ gst_modplug_src_event (GstPad * pad, GstEvent * event)
GST_DEBUG_OBJECT (modplug, "no song loaded yet");
break;
}
-
#if 0
timestamp = gst_util_uint64_scale_int (modplug->offset, GST_SECOND,
modplug->frequency);