summaryrefslogtreecommitdiff
path: root/ext/openal
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/openal
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/openal')
-rw-r--r--ext/openal/gstopenalsink.c5
-rw-r--r--ext/openal/gstopenalsrc.c4
2 files changed, 3 insertions, 6 deletions
diff --git a/ext/openal/gstopenalsink.c b/ext/openal/gstopenalsink.c
index ece590531..a169d9e57 100644
--- a/ext/openal/gstopenalsink.c
+++ b/ext/openal/gstopenalsink.c
@@ -162,15 +162,14 @@ static void
gst_openal_sink_base_init (gpointer gclass)
{
GstElementClass *element_class = GST_ELEMENT_CLASS (gclass);
- GstPadTemplate *pad_template;
gst_element_class_set_details_simple (element_class, "Audio sink (OpenAL)",
"Sink/Audio",
"Output to a sound device via OpenAL",
"Chris Robinson <chris.kcat@gmail.com>");
- pad_template = gst_static_pad_template_get (&openalsink_sink_factory);
- gst_element_class_add_pad_template (element_class, pad_template);
+ gst_element_class_add_static_pad_template (element_class,
+ &openalsink_sink_factory);
}
/* initialize the plugin's class */
diff --git a/ext/openal/gstopenalsrc.c b/ext/openal/gstopenalsrc.c
index 350071956..18379137b 100644
--- a/ext/openal/gstopenalsrc.c
+++ b/ext/openal/gstopenalsrc.c
@@ -142,9 +142,7 @@ gst_openal_src_base_init (gpointer gclass)
"OpenAL source capture audio from device",
"Victor Lin <bornstub@gmail.com>");
- gst_element_class_add_pad_template (element_class,
- gst_static_pad_template_get (&src_factory)
- );
+ gst_element_class_add_static_pad_template (element_class, &src_factory);
}
static void