[farsight2/master] msn: emit connecting and ready stream states
Olivier Crête
olivier.crete at collabora.co.uk
Tue Jul 14 09:50:53 PDT 2009
---
gst/fsmsnconference/fs-msn-stream.c | 20 ++++++++++++++++++++
1 files changed, 20 insertions(+), 0 deletions(-)
diff --git a/gst/fsmsnconference/fs-msn-stream.c b/gst/fsmsnconference/fs-msn-stream.c
index 0031208..a14232a 100644
--- a/gst/fsmsnconference/fs-msn-stream.c
+++ b/gst/fsmsnconference/fs-msn-stream.c
@@ -506,6 +506,14 @@ _connected (
GST_DEBUG ("******** CONNECTED %d**********", fd);
+ gst_element_post_message (GST_ELEMENT (conference),
+ gst_message_new_element (GST_OBJECT (conference),
+ gst_structure_new ("farsight-component-state-changed",
+ "stream", FS_TYPE_STREAM, self,
+ "component", G_TYPE_UINT, 1,
+ "state", FS_TYPE_STREAM_STATE, FS_STREAM_STATE_READY,
+ NULL)));
+
if (self->priv->orig_direction == FS_DIRECTION_RECV)
codecbin = gst_parse_bin_from_description (
"fdsrc name=fdsrc ! mimdec ! valve name=recv_valve", TRUE, &error);
@@ -708,6 +716,18 @@ fs_msn_stream_set_remote_candidates (FsStream *stream, GList *candidates,
candidates, error);
GST_OBJECT_UNLOCK (conference);
+
+ if (ret)
+ gst_element_post_message (GST_ELEMENT (conference),
+ gst_message_new_element (GST_OBJECT (conference),
+ gst_structure_new ("farsight-component-state-changed",
+ "stream", FS_TYPE_STREAM, self,
+ "component", G_TYPE_UINT, 1,
+ "state", FS_TYPE_STREAM_STATE, FS_STREAM_STATE_CONNECTING,
+ NULL)));
+
+ gst_object_unref (conference);
+
return ret;
}
--
1.5.6.5
More information about the farsight-commits
mailing list