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:
Santiago Carot-Nemesio 2015-05-28 15:55:03 +02:00 committed by Sebastian Dröge
parent 04b010a883
commit 665031751d

View file

@ -380,15 +380,13 @@ gst_dtls_dec_release_pad (GstElement * element, GstPad * pad)
g_return_if_fail (self->src == pad); g_return_if_fail (self->src == pad);
g_mutex_lock (&self->src_mutex); g_mutex_lock (&self->src_mutex);
gst_object_unref (self->src);
self->src = NULL; self->src = NULL;
g_mutex_unlock (&self->src_mutex); g_mutex_unlock (&self->src_mutex);
gst_element_remove_pad (element, pad);
GST_DEBUG_OBJECT (self, "releasing src 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 static void