From ffa8f53c26f308ab9ec4b60c58f7e3084b9cdd3d Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Sat, 22 Nov 2008 13:17:24 +0000 Subject: gst/rtpmanager/gstrtpbin.c: Also unref the target pad for unknown pads. Original commit message from CVS: * gst/rtpmanager/gstrtpbin.c: (gst_rtp_bin_release_pad): Also unref the target pad for unknown pads. --- gst/rtpmanager/gstrtpbin.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gst/rtpmanager') diff --git a/gst/rtpmanager/gstrtpbin.c b/gst/rtpmanager/gstrtpbin.c index 13402ea3..07e91213 100644 --- a/gst/rtpmanager/gstrtpbin.c +++ b/gst/rtpmanager/gstrtpbin.c @@ -2452,7 +2452,6 @@ gst_rtp_bin_release_pad (GstElement * element, GstPad * pad) } else if (session->send_rtcp_src == target) { remove_rtcp (rtpbin, session, pad); } - GST_RTP_BIN_UNLOCK (rtpbin); gst_object_unref (target); @@ -2463,6 +2462,7 @@ gst_rtp_bin_release_pad (GstElement * element, GstPad * pad) unknown_pad: { GST_RTP_BIN_UNLOCK (rtpbin); + gst_object_unref (target); g_warning ("gstrtpbin: %s:%s is not one of our request pads", GST_DEBUG_PAD_NAME (pad)); return; -- cgit v1.2.1