[farsight2/master] Init nice state to disconnected

Olivier Crête olivier.crete at collabora.co.uk
Tue Dec 23 15:26:20 PST 2008


---
 transmitters/nice/fs-nice-stream-transmitter.c |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/transmitters/nice/fs-nice-stream-transmitter.c b/transmitters/nice/fs-nice-stream-transmitter.c
index 60b3cef..c9ddf4d 100644
--- a/transmitters/nice/fs-nice-stream-transmitter.c
+++ b/transmitters/nice/fs-nice-stream-transmitter.c
@@ -271,7 +271,7 @@ fs_nice_stream_transmitter_init (FsNiceStreamTransmitter *self)
   self->priv = FS_NICE_STREAM_TRANSMITTER_GET_PRIVATE (self);
 
   self->priv->sending = TRUE;
-
+  self->priv->state = FS_STREAM_STATE_DISCONNECTED;
   self->priv->mutex = g_mutex_new ();
 }
 
@@ -882,6 +882,9 @@ fs_nice_stream_transmitter_state_changed (FsNiceStreamTransmitter *self,
   gboolean identical = TRUE;
   gint i;
 
+  GST_DEBUG ("Stream: %u Component %u has state %u",
+      self->priv->stream_id, component_id, state);
+
   FS_NICE_STREAM_TRANSMITTER_LOCK (self);
 
   self->priv->component_states[component_id - 1] = fs_state;
-- 
1.5.6.5




More information about the farsight-commits mailing list