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:10:01 +00:00
parent 1d1cffe8ee
commit f877920db7
2 changed files with 8 additions and 8 deletions

View file

@ -354,10 +354,10 @@ gst_lame_base_init (gpointer g_class)
{ {
GstElementClass *element_class = GST_ELEMENT_CLASS (g_class); GstElementClass *element_class = GST_ELEMENT_CLASS (g_class);
gst_element_class_add_pad_template (element_class, gst_element_class_add_static_pad_template (element_class,
gst_static_pad_template_get (&gst_lame_src_template)); &gst_lame_src_template);
gst_element_class_add_pad_template (element_class, gst_element_class_add_static_pad_template (element_class,
gst_static_pad_template_get (&gst_lame_sink_template)); &gst_lame_sink_template);
gst_element_class_set_details_simple (element_class, "L.A.M.E. mp3 encoder", gst_element_class_set_details_simple (element_class, "L.A.M.E. mp3 encoder",
"Codec/Encoder/Audio", "Codec/Encoder/Audio",
"High-quality free MP3 encoder (deprecated)", "High-quality free MP3 encoder (deprecated)",

View file

@ -215,10 +215,10 @@ gst_lamemp3enc_base_init (gpointer g_class)
{ {
GstElementClass *element_class = GST_ELEMENT_CLASS (g_class); GstElementClass *element_class = GST_ELEMENT_CLASS (g_class);
gst_element_class_add_pad_template (element_class, gst_element_class_add_static_pad_template (element_class,
gst_static_pad_template_get (&gst_lamemp3enc_src_template)); &gst_lamemp3enc_src_template);
gst_element_class_add_pad_template (element_class, gst_element_class_add_static_pad_template (element_class,
gst_static_pad_template_get (&gst_lamemp3enc_sink_template)); &gst_lamemp3enc_sink_template);
gst_element_class_set_details_simple (element_class, "L.A.M.E. mp3 encoder", gst_element_class_set_details_simple (element_class, "L.A.M.E. mp3 encoder",
"Codec/Encoder/Audio", "Codec/Encoder/Audio",
"High-quality free MP3 encoder", "High-quality free MP3 encoder",