summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWim Taymans <wim.taymans@gmail.com>2008-11-22 13:17:24 +0000
committerTim-Philipp Müller <tim.muller@collabora.co.uk>2009-08-11 02:30:39 +0100
commitc84ffd84601fc7caef870d41cb37fc11177c4d5a (patch)
tree444e1a1e1c4d106e75a31a997ea96eb0818d56ff
parent75580396d95b2705c869337b4f13e737bdcc95d0 (diff)
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.
-rw-r--r--gst/rtpmanager/gstrtpbin.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gst/rtpmanager/gstrtpbin.c b/gst/rtpmanager/gstrtpbin.c
index 13402ea38..07e91213f 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;