Commit f45657f6 authored by Sebastian Rasmussen's avatar Sebastian Rasmussen Committed by Sebastian Dröge

rgvolume: Avoid taking unnecessary refs

Fixes https://bugzilla.gnome.org/show_bug.cgi?id=733122
parent ca22ad8d
......@@ -320,14 +320,14 @@ gst_rg_volume_init (GstRgVolume * self)
volume_pad = gst_element_get_static_pad (self->volume_element, "sink");
ghost_pad = gst_ghost_pad_new_from_template ("sink", volume_pad,
gst_pad_get_pad_template (volume_pad));
GST_PAD_PAD_TEMPLATE (volume_pad));
gst_object_unref (volume_pad);
gst_pad_set_event_function (ghost_pad, gst_rg_volume_sink_event);
gst_element_add_pad (GST_ELEMENT_CAST (self), ghost_pad);
volume_pad = gst_element_get_static_pad (self->volume_element, "src");
ghost_pad = gst_ghost_pad_new_from_template ("src", volume_pad,
gst_pad_get_pad_template (volume_pad));
GST_PAD_PAD_TEMPLATE (volume_pad));
gst_object_unref (volume_pad);
gst_element_add_pad (GST_ELEMENT_CAST (self), ghost_pad);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment