mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-26 05:06:17 +00:00
dtlsdec: Remove unnecessary ref/unref operations
https://bugzilla.gnome.org/show_bug.cgi?id=750036
This commit is contained in:
parent
665031751d
commit
29c17a96f7
1 changed files with 1 additions and 2 deletions
|
@ -358,7 +358,7 @@ gst_dtls_dec_request_new_pad (GstElement * element,
|
||||||
}
|
}
|
||||||
|
|
||||||
self->src = pad = gst_pad_new_from_template (tmpl, name);
|
self->src = pad = gst_pad_new_from_template (tmpl, name);
|
||||||
gst_object_ref (pad);
|
|
||||||
g_mutex_unlock (&self->src_mutex);
|
g_mutex_unlock (&self->src_mutex);
|
||||||
|
|
||||||
gst_pad_set_active (pad, TRUE);
|
gst_pad_set_active (pad, TRUE);
|
||||||
|
@ -367,7 +367,6 @@ gst_dtls_dec_request_new_pad (GstElement * element,
|
||||||
gst_pad_set_caps (pad, (GstCaps *) caps);
|
gst_pad_set_caps (pad, (GstCaps *) caps);
|
||||||
|
|
||||||
gst_element_add_pad (element, pad);
|
gst_element_add_pad (element, pad);
|
||||||
gst_object_unref (pad);
|
|
||||||
|
|
||||||
return pad;
|
return pad;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue