[farsight2/master] Set the initial controlling mode and default to true
Olivier Crête
olivier.crete at collabora.co.uk
Tue Dec 23 15:26:21 PST 2008
---
transmitters/nice/fs-nice-stream-transmitter.c | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/transmitters/nice/fs-nice-stream-transmitter.c b/transmitters/nice/fs-nice-stream-transmitter.c
index ca8bd32..77d7cd7 100644
--- a/transmitters/nice/fs-nice-stream-transmitter.c
+++ b/transmitters/nice/fs-nice-stream-transmitter.c
@@ -311,6 +311,8 @@ fs_nice_stream_transmitter_init (FsNiceStreamTransmitter *self)
self->priv->sending = TRUE;
self->priv->state = FS_STREAM_STATE_DISCONNECTED;
self->priv->mutex = g_mutex_new ();
+
+ self->priv->controlling_mode = TRUE;
}
static void
@@ -959,6 +961,10 @@ fs_nice_stream_transmitter_build (FsNiceStreamTransmitter *self,
"turn-server-port", self->priv->turn_port,
NULL);
+ g_object_set (agent,
+ "controlling-mode", self->priv->controlling_mode,
+ NULL);
+
local_prefs_copy = fs_candidate_list_copy (
self->priv->preferred_local_candidates);
g_object_set_data (G_OBJECT (agent), "preferred-local-candidates",
--
1.5.6.5
More information about the farsight-commits
mailing list