diff options
author | Vincent Penquerc'h <vincent.penquerch@collabora.co.uk> | 2011-11-28 12:51:22 +0000 |
---|---|---|
committer | Vincent Penquerc'h <vincent.penquerch@collabora.co.uk> | 2011-11-28 13:09:02 +0000 |
commit | 96374054ac158b8350db762bbefafbb3a80bcf81 (patch) | |
tree | ce4ed960898ac79fb8e79d8434decd313b50531d /ext/theora/gsttheoradec.c | |
parent | 149a4ce390a78e21309b210f7daba9db5d42afe6 (diff) |
various: fix pad template leaks
https://bugzilla.gnome.org/show_bug.cgi?id=662664
Diffstat (limited to 'ext/theora/gsttheoradec.c')
-rw-r--r-- | ext/theora/gsttheoradec.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/ext/theora/gsttheoradec.c b/ext/theora/gsttheoradec.c index 9e417be98..34d89db59 100644 --- a/ext/theora/gsttheoradec.c +++ b/ext/theora/gsttheoradec.c @@ -113,10 +113,10 @@ gst_theora_dec_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 (&theora_dec_src_factory)); - gst_element_class_add_pad_template (element_class, - gst_static_pad_template_get (&theora_dec_sink_factory)); + gst_element_class_add_static_pad_template (element_class, + &theora_dec_src_factory); + gst_element_class_add_static_pad_template (element_class, + &theora_dec_sink_factory); gst_element_class_set_details_simple (element_class, "Theora video decoder", "Codec/Decoder/Video", "decode raw theora streams to raw YUV video", |