[farsight2/master] Emit the "farsight-codecs-changed" message when the codecs change
Olivier Crête
olivier.crete at collabora.co.uk
Tue Dec 23 15:22:34 PST 2008
---
gst/fsrtpconference/fs-rtp-session.c | 14 ++++++++++++++
1 files changed, 14 insertions(+), 0 deletions(-)
diff --git a/gst/fsrtpconference/fs-rtp-session.c b/gst/fsrtpconference/fs-rtp-session.c
index 4aa0957..f7f321e 100644
--- a/gst/fsrtpconference/fs-rtp-session.c
+++ b/gst/fsrtpconference/fs-rtp-session.c
@@ -1261,6 +1261,12 @@ fs_rtp_session_set_local_codecs_config (FsSession *session,
g_object_notify ((GObject*) self, "local-codecs");
g_object_notify ((GObject*) self, "local-codecs-config");
+ gst_element_post_message (GST_ELEMENT (self->priv->conference),
+ gst_message_new_element (GST_OBJECT (self->priv->conference),
+ gst_structure_new ("farsight-codecs-changed",
+ "session", FS_TYPE_SESSION, session,
+ NULL)));
+
return TRUE;
}
else
@@ -1647,8 +1653,16 @@ fs_rtp_session_negotiate_codecs (FsRtpSession *session,
FS_RTP_SESSION_UNLOCK (session);
if (is_new)
+ {
g_object_notify (G_OBJECT (session), "negotiated-codecs");
+ gst_element_post_message (GST_ELEMENT (session->priv->conference),
+ gst_message_new_element (GST_OBJECT (session->priv->conference),
+ gst_structure_new ("farsight-codecs-changed",
+ "session", FS_TYPE_SESSION, session,
+ NULL)));
+ }
+
return TRUE;
} else {
FS_RTP_SESSION_UNLOCK (session);
--
1.5.6.5
More information about the farsight-commits
mailing list