Commit 1687711a authored by Youness Alaoui's avatar Youness Alaoui

Fix peer reflexive valid pair priority.

Should use the remote priority rather than the priority of the parent pair
Thanks to Filippo Della Betta
parent 9c92154e
......@@ -1922,11 +1922,11 @@ static CandidateCheckPair *priv_add_peer_reflexive_pair (NiceAgent *agent, guint
g_snprintf (pair->foundation, NICE_CANDIDATE_PAIR_MAX_FOUNDATION, "%s:%s",
local_cand->foundation, parent_pair->remote->foundation);
if (agent->controlling_mode == TRUE)
pair->priority = nice_candidate_pair_priority (local_cand->priority,
parent_pair->priority);
pair->priority = nice_candidate_pair_priority (pair->local->priority,
pair->remote->priority);
else
pair->priority = nice_candidate_pair_priority (parent_pair->priority,
local_cand->priority);
pair->priority = nice_candidate_pair_priority (pair->remote->priority,
pair->local->priority);
pair->nominated = FALSE;
pair->controlling = agent->controlling_mode;
nice_debug ("Agent %p : added a new peer-discovered pair with foundation of '%s'.", agent, pair->foundation);
......
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