[farsight2/master] rtpsession: Keep ref on stream while associating substreams to it
Olivier Crête
olivier.crete at collabora.co.uk
Thu Sep 3 12:20:10 PDT 2009
---
gst/fsrtpconference/fs-rtp-session.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/gst/fsrtpconference/fs-rtp-session.c b/gst/fsrtpconference/fs-rtp-session.c
index b73f19b..3a07890 100644
--- a/gst/fsrtpconference/fs-rtp-session.c
+++ b/gst/fsrtpconference/fs-rtp-session.c
@@ -3888,9 +3888,12 @@ fs_rtp_session_associate_ssrc_cname (FsRtpSession *session,
g_hash_table_insert (session->priv->ssrc_streams, GUINT_TO_POINTER (ssrc),
stream);
+ g_object_ref (stream);
FS_RTP_SESSION_UNLOCK (session);
fs_rtp_session_associate_free_substreams (session, stream, ssrc);
+ g_object_unref (stream);
+
fs_rtp_session_has_disposed_exit (session);
}
--
1.5.6.5
More information about the farsight-commits
mailing list