mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-23 18:21:04 +00:00
dtlsdec: Fix release request pad function
Don't unref the pad reference we don't own and just remove the pad. https://bugzilla.gnome.org/show_bug.cgi?id=750036
This commit is contained in:
parent
04b010a883
commit
665031751d
1 changed files with 2 additions and 4 deletions
|
@ -380,15 +380,13 @@ gst_dtls_dec_release_pad (GstElement * element, GstPad * pad)
|
|||
g_return_if_fail (self->src == pad);
|
||||
|
||||
g_mutex_lock (&self->src_mutex);
|
||||
gst_object_unref (self->src);
|
||||
|
||||
self->src = NULL;
|
||||
g_mutex_unlock (&self->src_mutex);
|
||||
|
||||
gst_element_remove_pad (element, pad);
|
||||
|
||||
GST_DEBUG_OBJECT (self, "releasing src pad");
|
||||
|
||||
GST_ELEMENT_GET_CLASS (element)->release_pad (element, pad);
|
||||
gst_element_remove_pad (element, pad);
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
Loading…
Reference in a new issue