[farsight2/master] Add hash table of ssrc->stream to fsrtpsession
Olivier Crête
olivier.crete at collabora.co.uk
Tue Dec 23 15:23:44 PST 2008
---
gst/fsrtpconference/fs-rtp-session.c | 9 +++++++++
1 files changed, 9 insertions(+), 0 deletions(-)
diff --git a/gst/fsrtpconference/fs-rtp-session.c b/gst/fsrtpconference/fs-rtp-session.c
index 5cb59e7..e296563 100644
--- a/gst/fsrtpconference/fs-rtp-session.c
+++ b/gst/fsrtpconference/fs-rtp-session.c
@@ -150,6 +150,10 @@ struct _FsRtpSessionPrivate
GList *extra_sources;
+ /* This is a ht of ssrc->streams
+ * It is protected by the session mutex */
+ GHashTable *ssrc_streams;
+
GError *construction_error;
gboolean disposed;
@@ -334,6 +338,8 @@ fs_rtp_session_init (FsRtpSession *self)
self->priv->media_type = FS_MEDIA_TYPE_LAST + 1;
self->priv->no_rtcp_timeout = DEFAULT_NO_RTCP_TIMEOUT;
+
+ self->priv->ssrc_streams = g_hash_table_new (g_direct_hash, g_direct_equal);
}
static gboolean
@@ -572,6 +578,9 @@ fs_rtp_session_finalize (GObject *object)
if (self->priv->requested_send_codec)
fs_codec_destroy (self->priv->requested_send_codec);
+ if (self->priv->ssrc_streams)
+ g_hash_table_destroy (self->priv->ssrc_streams);
+
parent_class->finalize (object);
}
--
1.5.6.5
More information about the farsight-commits
mailing list