[farsight2/master] Use the right test for component counters

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


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

diff --git a/transmitters/nice/fs-nice-stream-transmitter.c b/transmitters/nice/fs-nice-stream-transmitter.c
index bff182b..b071b32 100644
--- a/transmitters/nice/fs-nice-stream-transmitter.c
+++ b/transmitters/nice/fs-nice-stream-transmitter.c
@@ -572,7 +572,7 @@ fs_nice_stream_transmitter_remote_candidates_added (
         stream_id, cand->username, cand->password);
   }
 
-  for (c = 1; c < self->priv->transmitter->components; c++)
+  for (c = 1; c <= self->priv->transmitter->components; c++)
   {
     for (item = candidates;
          item;
@@ -939,7 +939,7 @@ fs_nice_stream_transmitter_gathering_done (FsNiceStreamTransmitter *self)
   GST_DEBUG ("Candidates gathered for stream %u", self->priv->stream_id);
   FS_NICE_STREAM_TRANSMITTER_UNLOCK (self);
 
-  for (c = 1; c < self->priv->transmitter->components; c++)
+  for (c = 1; c <= self->priv->transmitter->components; c++)
   {
     candidates = nice_agent_get_local_candidates (
         self->priv->transmitter->agent,
-- 
1.5.6.5




More information about the farsight-commits mailing list