Commit b3426662 authored by Fabrice Bellet's avatar Fabrice Bellet Committed by Olivier Crête
Browse files

discovery: redundant candidates should have the same transport

When dropping redundant server-reflexive and relay candidates, they
should of course have the same transport too.
parent a85b17c7
......@@ -430,6 +430,7 @@ static gboolean priv_add_local_candidate_pruned (NiceAgent *agent, guint stream_
if (c->type == NICE_CANDIDATE_TYPE_RELAYED &&
candidate->type == NICE_CANDIDATE_TYPE_RELAYED &&
c->transport == candidate->transport &&
nice_address_equal_no_port (&c->addr, &candidate->addr)) {
nice_debug ("Agent %p : s%d/c%d : relay cand %p redundant, ignoring.",
agent, stream_id, component->id, candidate);
......@@ -438,6 +439,7 @@ static gboolean priv_add_local_candidate_pruned (NiceAgent *agent, guint stream_
if (c->type == NICE_CANDIDATE_TYPE_SERVER_REFLEXIVE &&
candidate->type == NICE_CANDIDATE_TYPE_SERVER_REFLEXIVE &&
c->transport == candidate->transport &&
nice_address_equal_no_port (&c->addr, &candidate->addr)) {
nice_debug ("Agent %p : s%d/c%d : srflx cand %p redundant, ignoring.",
agent, stream_id, component->id, candidate);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment