summaryrefslogtreecommitdiff
path: root/gst/wavenc
diff options
context:
space:
mode:
authorVincent Penquerc'h <vincent.penquerch@collabora.co.uk>2011-11-28 12:58:44 +0000
committerVincent Penquerc'h <vincent.penquerch@collabora.co.uk>2011-11-28 13:30:27 +0000
commitc0e101e93fa178fb3cb62bed64117c005583b032 (patch)
tree3db76b46e901357dba441789e899f64321f474d7 /gst/wavenc
parenta2337b8af45cb5e8c091ff0e1c3ef4b6cc7b20a3 (diff)
various: fix pad template leaks
https://bugzilla.gnome.org/show_bug.cgi?id=662664
Diffstat (limited to 'gst/wavenc')
-rw-r--r--gst/wavenc/gstwavenc.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/gst/wavenc/gstwavenc.c b/gst/wavenc/gstwavenc.c
index bd4538027..e6b06d989 100644
--- a/gst/wavenc/gstwavenc.c
+++ b/gst/wavenc/gstwavenc.c
@@ -151,10 +151,8 @@ gst_wavenc_base_init (gpointer g_class)
"Codec/Muxer/Audio",
"Encode raw audio into WAV", "Iain Holmes <iain@prettypeople.org>");
- gst_element_class_add_pad_template (element_class,
- gst_static_pad_template_get (&src_factory));
- gst_element_class_add_pad_template (element_class,
- gst_static_pad_template_get (&sink_factory));
+ gst_element_class_add_static_pad_template (element_class, &src_factory);
+ gst_element_class_add_static_pad_template (element_class, &sink_factory);
GST_DEBUG_CATEGORY_INIT (wavenc_debug, "wavenc", 0, "WAV encoder element");
}