various: fix pad template ref leaks

https://bugzilla.gnome.org/show_bug.cgi?id=662664
This commit is contained in:
Vincent Penquerc'h 2011-11-28 13:08:27 +00:00
parent dcadfe6621
commit cf9dee41c3
4 changed files with 10 additions and 12 deletions

View file

@ -118,10 +118,8 @@ gst_dtmf_detect_base_init (gpointer klass)
{
GstElementClass *element_class = GST_ELEMENT_CLASS (klass);
gst_element_class_add_pad_template (element_class,
gst_static_pad_template_get (&srctemplate));
gst_element_class_add_pad_template (element_class,
gst_static_pad_template_get (&sinktemplate));
gst_element_class_add_static_pad_template (element_class, &srctemplate);
gst_element_class_add_static_pad_template (element_class, &sinktemplate);
gst_element_class_set_details_simple (element_class, "DTMF detector element",
"Filter/Analyzer/Audio",

View file

@ -241,8 +241,8 @@ gst_dtmf_src_base_init (gpointer g_class)
GST_DEBUG_CATEGORY_INIT (gst_dtmf_src_debug, "dtmfsrc", 0, "dtmfsrc element");
gst_element_class_add_pad_template (element_class,
gst_static_pad_template_get (&gst_dtmf_src_template));
gst_element_class_add_static_pad_template (element_class,
&gst_dtmf_src_template);
gst_element_class_set_details_simple (element_class, "DTMF tone generator",
"Source/Audio",

View file

@ -216,10 +216,10 @@ gst_rtp_dtmf_depay_base_init (gpointer klass)
{
GstElementClass *element_class = GST_ELEMENT_CLASS (klass);
gst_element_class_add_pad_template (element_class,
gst_static_pad_template_get (&gst_rtp_dtmf_depay_src_template));
gst_element_class_add_pad_template (element_class,
gst_static_pad_template_get (&gst_rtp_dtmf_depay_sink_template));
gst_element_class_add_static_pad_template (element_class,
&gst_rtp_dtmf_depay_src_template);
gst_element_class_add_static_pad_template (element_class,
&gst_rtp_dtmf_depay_sink_template);
GST_DEBUG_CATEGORY_INIT (gst_rtp_dtmf_depay_debug,

View file

@ -208,8 +208,8 @@ gst_rtp_dtmf_src_base_init (gpointer g_class)
GST_DEBUG_CATEGORY_INIT (gst_rtp_dtmf_src_debug,
"rtpdtmfsrc", 0, "rtpdtmfsrc element");
gst_element_class_add_pad_template (element_class,
gst_static_pad_template_get (&gst_rtp_dtmf_src_template));
gst_element_class_add_static_pad_template (element_class,
&gst_rtp_dtmf_src_template);
gst_element_class_set_details_simple (element_class,
"RTP DTMF packet generator", "Source/Network",