[farsight2/master] Dont forget to ref the fakesinks

Olivier Crête olivier.crete at collabora.co.uk
Tue Dec 23 15:20:33 PST 2008


---
 gst/fsrtpconference/fs-rtp-session.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/gst/fsrtpconference/fs-rtp-session.c b/gst/fsrtpconference/fs-rtp-session.c
index ab9b716..4a63a4e 100644
--- a/gst/fsrtpconference/fs-rtp-session.c
+++ b/gst/fsrtpconference/fs-rtp-session.c
@@ -931,7 +931,7 @@ fs_rtp_session_constructed (GObject *object)
 
   gst_element_set_state (fakesink, GST_STATE_PLAYING);
 
-  self->priv->transmitter_rtp_fakesink = fakesink;
+  self->priv->transmitter_rtp_fakesink = gst_object_ref (fakesink);
 
   pad1 = gst_element_get_request_pad (tee, "src%d");
   pad2 = gst_element_get_static_pad (fakesink, "sink");
@@ -1030,7 +1030,7 @@ fs_rtp_session_constructed (GObject *object)
 
   gst_element_set_state (fakesink, GST_STATE_PLAYING);
 
-  self->priv->transmitter_rtcp_fakesink = fakesink;
+  self->priv->transmitter_rtcp_fakesink = gst_object_ref (fakesink);
 
   pad1 = gst_element_get_request_pad (tee, "src%d");
   pad2 = gst_element_get_static_pad (fakesink, "sink");
-- 
1.5.6.5




More information about the farsight-commits mailing list