mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-23 16:50:47 +00:00
various: fix pad template ref leaks
https://bugzilla.gnome.org/show_bug.cgi?id=662664
This commit is contained in:
parent
64c3d73642
commit
b8431a03a7
2 changed files with 6 additions and 8 deletions
|
@ -103,10 +103,10 @@ gst_opus_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 (&opus_dec_src_factory));
|
||||
gst_element_class_add_pad_template (element_class,
|
||||
gst_static_pad_template_get (&opus_dec_sink_factory));
|
||||
gst_element_class_add_static_pad_template (element_class,
|
||||
&opus_dec_src_factory);
|
||||
gst_element_class_add_static_pad_template (element_class,
|
||||
&opus_dec_sink_factory);
|
||||
gst_element_class_set_details_simple (element_class, "Opus audio decoder",
|
||||
"Codec/Decoder/Audio",
|
||||
"decode opus streams to audio",
|
||||
|
|
|
@ -204,10 +204,8 @@ gst_opus_enc_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 (&src_factory));
|
||||
gst_element_class_add_pad_template (element_class,
|
||||
gst_static_pad_template_get (&sink_factory));
|
||||
gst_element_class_add_static_pad_template (element_class, &src_factory);
|
||||
gst_element_class_add_static_pad_template (element_class, &sink_factory);
|
||||
gst_element_class_set_details_simple (element_class, "Opus audio encoder",
|
||||
"Codec/Encoder/Audio",
|
||||
"Encodes audio in Opus format",
|
||||
|
|
Loading…
Reference in a new issue