[farsight2/master] Only set the remote candidates on the matching component
Olivier Crête
olivier.crete at collabora.co.uk
Tue Dec 23 15:26:19 PST 2008
---
transmitters/nice/fs-nice-stream-transmitter.c | 12 ++++++++----
1 files changed, 8 insertions(+), 4 deletions(-)
diff --git a/transmitters/nice/fs-nice-stream-transmitter.c b/transmitters/nice/fs-nice-stream-transmitter.c
index ad71fa8..8d7a678 100644
--- a/transmitters/nice/fs-nice-stream-transmitter.c
+++ b/transmitters/nice/fs-nice-stream-transmitter.c
@@ -588,12 +588,16 @@ fs_nice_stream_transmitter_remote_candidates_added (
item = g_list_next (item))
{
FsCandidate *candidate = item->data;
- NiceCandidate *nc = fs_candidate_to_nice_candidate (self, candidate);
- if (!nc)
- goto error;
+ if (candidate->component_id == c)
+ {
+ NiceCandidate *nc = fs_candidate_to_nice_candidate (self, candidate);
+
+ if (!nc)
+ goto error;
- nice_candidates = g_slist_append (nice_candidates, nc);
+ nice_candidates = g_slist_append (nice_candidates, nc);
+ }
}
nice_agent_set_remote_candidates (self->priv->transmitter->agent,
--
1.5.6.5
More information about the farsight-commits
mailing list