summaryrefslogtreecommitdiffstats
path: root/gst
diff options
context:
space:
mode:
authorWim Taymans <wim.taymans@collabora.co.uk>2009-05-22 11:59:17 +0200
committerWim Taymans <wim.taymans@collabora.co.uk>2009-05-22 11:59:17 +0200
commit58c59d7953e58e262e6eba7fc9906227e68552c6 (patch)
tree31ddfb3d3a89a1ee0639f871e0dd44e33a4c4750 /gst
parent580b20d6cc155b21e7b0f74f0e4fd28af2c7ce41 (diff)
downloadgst-plugins-bad-58c59d7953e58e262e6eba7fc9906227e68552c6.tar.gz
gst-plugins-bad-58c59d7953e58e262e6eba7fc9906227e68552c6.tar.bz2
gst-plugins-bad-58c59d7953e58e262e6eba7fc9906227e68552c6.zip
rtpbin: unref requests pads after releasing
Diffstat (limited to 'gst')
-rw-r--r--gst/rtpmanager/gstrtpbin.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/gst/rtpmanager/gstrtpbin.c b/gst/rtpmanager/gstrtpbin.c
index 7e14a0d9..e4892d49 100644
--- a/gst/rtpmanager/gstrtpbin.c
+++ b/gst/rtpmanager/gstrtpbin.c
@@ -2131,6 +2131,7 @@ remove_recv_rtp (GstRtpBin * rtpbin, GstRtpBinSession * session, GstPad * pad)
}
if (session->recv_rtp_sink) {
gst_element_release_request_pad (session->session, session->recv_rtp_sink);
+ gst_object_unref (session->recv_rtp_sink);
session->recv_rtp_sink = NULL;
}
@@ -2240,6 +2241,7 @@ remove_recv_rtcp (GstRtpBin * rtpbin, GstRtpBinSession * session, GstPad * pad)
}
if (session->recv_rtcp_sink) {
gst_element_release_request_pad (session->session, session->recv_rtcp_sink);
+ gst_object_unref (session->recv_rtcp_sink);
session->recv_rtcp_sink = NULL;
}
}
@@ -2350,6 +2352,7 @@ remove_send_rtp (GstRtpBin * rtpbin, GstRtpBinSession * session, GstPad * pad)
if (session->send_rtp_sink) {
gst_element_release_request_pad (GST_ELEMENT_CAST (session->session),
session->send_rtp_sink);
+ gst_object_unref (session->send_rtp_sink);
session->send_rtp_sink = NULL;
}
@@ -2425,6 +2428,7 @@ remove_rtcp (GstRtpBin * rtpbin, GstRtpBinSession * session, GstPad * pad)
if (session->send_rtcp_src) {
gst_element_release_request_pad (session->session, session->send_rtcp_src);
+ gst_object_unref (session->send_rtcp_src);
session->send_rtcp_src = NULL;
}
}