diff options
author | Vincent Penquerc'h <vincent.penquerch@collabora.co.uk> | 2011-11-28 13:08:27 +0000 |
---|---|---|
committer | Vincent Penquerc'h <vincent.penquerch@collabora.co.uk> | 2011-11-28 13:08:27 +0000 |
commit | 7521b597f4dc49d8d168f368f0e7ebaf98a72156 (patch) | |
tree | 0033ba79e1bf8add58e1dcecffa95f73010bbd10 /gst/sdp | |
parent | 26d6add9457f00ce8ec13844368466f0e3816e5d (diff) | |
download | gstreamer-plugins-bad-7521b597f4dc49d8d168f368f0e7ebaf98a72156.tar.gz |
various: fix pad template ref leaks
https://bugzilla.gnome.org/show_bug.cgi?id=662664
Diffstat (limited to 'gst/sdp')
-rw-r--r-- | gst/sdp/gstsdpdemux.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/gst/sdp/gstsdpdemux.c b/gst/sdp/gstsdpdemux.c index e03fb7ec3..9254dbcf1 100644 --- a/gst/sdp/gstsdpdemux.c +++ b/gst/sdp/gstsdpdemux.c @@ -152,10 +152,8 @@ gst_sdp_demux_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 (&sinktemplate)); - gst_element_class_add_pad_template (element_class, - gst_static_pad_template_get (&rtptemplate)); + gst_element_class_add_static_pad_template (element_class, &sinktemplate); + gst_element_class_add_static_pad_template (element_class, &rtptemplate); gst_element_class_set_details_simple (element_class, "SDP session setup", "Codec/Demuxer/Network/RTP", |