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.
This commit is contained in:
Wim Taymans 2008-11-22 13:17:24 +00:00
parent 7e028507ff
commit ffa8f53c26
2 changed files with 6 additions and 1 deletions

View file

@ -1,3 +1,8 @@
2008-11-22 Wim Taymans <wim.taymans@collabora.co.uk>
* gst/rtpmanager/gstrtpbin.c: (gst_rtp_bin_release_pad):
Also unref the target pad for unknown pads.
2008-11-22 Sebastian Dröge <sebastian.droege@collabora.co.uk>
* gst/dccp/gstdccp.c: (gst_dccp_socket_write):

View file

@ -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;