summaryrefslogtreecommitdiff
path: root/tests/check/elements/audiorate.c
diff options
context:
space:
mode:
authorVincent Penquerc'h <vincent.penquerch@collabora.co.uk>2011-11-28 12:51:22 +0000
committerVincent Penquerc'h <vincent.penquerch@collabora.co.uk>2011-11-28 13:09:02 +0000
commit96374054ac158b8350db762bbefafbb3a80bcf81 (patch)
treece4ed960898ac79fb8e79d8434decd313b50531d /tests/check/elements/audiorate.c
parent149a4ce390a78e21309b210f7daba9db5d42afe6 (diff)
various: fix pad template leaks
https://bugzilla.gnome.org/show_bug.cgi?id=662664
Diffstat (limited to 'tests/check/elements/audiorate.c')
-rw-r--r--tests/check/elements/audiorate.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/tests/check/elements/audiorate.c b/tests/check/elements/audiorate.c
index 55b67032f..4d4edd9e2 100644
--- a/tests/check/elements/audiorate.c
+++ b/tests/check/elements/audiorate.c
@@ -62,10 +62,9 @@ test_injector_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 (&src_template));
- gst_element_class_add_pad_template (element_class,
- gst_static_pad_template_get (&sink_template));
+ gst_element_class_add_static_pad_template (element_class, &src_template);
+ gst_element_class_add_static_pad_template (element_class,
+ &sink_template);
}
static void