[farsight2/master] Add function to remove known SSRCs from a stream when a rtcp bye is received
Olivier Crête
olivier.crete at collabora.co.uk
Tue Dec 23 15:21:16 PST 2008
---
gst/fsrtpconference/fs-rtp-stream.c | 25 +++++++++++++++++++++++++
gst/fsrtpconference/fs-rtp-stream.h | 2 ++
2 files changed, 27 insertions(+), 0 deletions(-)
diff --git a/gst/fsrtpconference/fs-rtp-stream.c b/gst/fsrtpconference/fs-rtp-stream.c
index d36e646..41d30a9 100644
--- a/gst/fsrtpconference/fs-rtp-stream.c
+++ b/gst/fsrtpconference/fs-rtp-stream.c
@@ -771,6 +771,14 @@ fs_rtp_stream_maybe_emit_codecs_changed (FsRtpStream *stream,
fs_codec_destroy (codec);
}
+/**
+ * fs_rtp_stream_add_known_ssrc:
+ * @stream: a #FsRtpStream
+ * @ssrc: the SSRC to add
+ *
+ * Adds a SSRC to the list of known SSRCs for this stream
+ */
+
void
fs_rtp_stream_add_known_ssrc (FsRtpStream *stream,
guint32 ssrc)
@@ -783,3 +791,20 @@ fs_rtp_stream_add_known_ssrc (FsRtpStream *stream,
}
FS_RTP_SESSION_UNLOCK (stream->priv->session);
}
+
+/**
+ * fs_rtp_stream_remove_known_ssrc:
+ * @stream: a #FsRtpStream
+ * @ssrc: the SSRC to remove
+ *
+ * Removes the ssrc from the list of known ssrcs
+ */
+void
+fs_rtp_stream_remove_known_ssrc (FsRtpStream *stream,
+ guint32 ssrc)
+{
+ FS_RTP_SESSION_LOCK (stream->priv->session);
+ stream->priv->known_ssrcs = g_list_remove_all (stream->priv->known_ssrcs,
+ GUINT_TO_POINTER (ssrc));
+ FS_RTP_SESSION_UNLOCK (stream->priv->session);
+}
diff --git a/gst/fsrtpconference/fs-rtp-stream.h b/gst/fsrtpconference/fs-rtp-stream.h
index c16d9ba..17c06d8 100644
--- a/gst/fsrtpconference/fs-rtp-stream.h
+++ b/gst/fsrtpconference/fs-rtp-stream.h
@@ -99,6 +99,8 @@ void fs_rtp_stream_maybe_emit_codecs_changed (FsRtpStream *stream,
void fs_rtp_stream_add_known_ssrc (FsRtpStream *stream,
guint32 ssrc);
+void fs_rtp_stream_remove_known_ssrc (FsRtpStream *stream,
+ guint32 ssrc);
G_END_DECLS
--
1.5.6.5
More information about the farsight-commits
mailing list