mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-24 02:31:03 +00:00
various: fix pad template ref leaks
https://bugzilla.gnome.org/show_bug.cgi?id=662664
This commit is contained in:
parent
1d1cffe8ee
commit
f877920db7
2 changed files with 8 additions and 8 deletions
|
@ -354,10 +354,10 @@ gst_lame_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 (&gst_lame_src_template));
|
||||
gst_element_class_add_pad_template (element_class,
|
||||
gst_static_pad_template_get (&gst_lame_sink_template));
|
||||
gst_element_class_add_static_pad_template (element_class,
|
||||
&gst_lame_src_template);
|
||||
gst_element_class_add_static_pad_template (element_class,
|
||||
&gst_lame_sink_template);
|
||||
gst_element_class_set_details_simple (element_class, "L.A.M.E. mp3 encoder",
|
||||
"Codec/Encoder/Audio",
|
||||
"High-quality free MP3 encoder (deprecated)",
|
||||
|
|
|
@ -215,10 +215,10 @@ gst_lamemp3enc_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 (&gst_lamemp3enc_src_template));
|
||||
gst_element_class_add_pad_template (element_class,
|
||||
gst_static_pad_template_get (&gst_lamemp3enc_sink_template));
|
||||
gst_element_class_add_static_pad_template (element_class,
|
||||
&gst_lamemp3enc_src_template);
|
||||
gst_element_class_add_static_pad_template (element_class,
|
||||
&gst_lamemp3enc_sink_template);
|
||||
gst_element_class_set_details_simple (element_class, "L.A.M.E. mp3 encoder",
|
||||
"Codec/Encoder/Audio",
|
||||
"High-quality free MP3 encoder",
|
||||
|
|
Loading…
Reference in a new issue