Commit dec008ca authored by Fabrice Bellet's avatar Fabrice Bellet

agent: update the selected pair priority when foundation changes

The component selected pair priority may have its priority modified
if the foundation of its remote candidate changes. This update needs
to be recorded, even if its not signalled, since this value is used
in the conncheck in priv_update_selected_pair().
parent a0b48d44
...@@ -3504,6 +3504,11 @@ static void priv_update_pair_foundations (NiceAgent *agent, ...@@ -3504,6 +3504,11 @@ static void priv_update_pair_foundations (NiceAgent *agent,
nice_debug ("Agent %p : updating SELECTED PAIR for component " nice_debug ("Agent %p : updating SELECTED PAIR for component "
"%u: %s (prio:%" G_GUINT64_FORMAT ").", agent, "%u: %s (prio:%" G_GUINT64_FORMAT ").", agent,
component->id, foundation, pair->priority); component->id, foundation, pair->priority);
/* the foundation update of the selected pair also implies
* an update of its priority. prflx_priority doesn't change
* because only the remote candidate foundation is modified.
*/
component->selected_pair.priority = pair->priority;
agent_signal_new_selected_pair (agent, pair->stream_id, agent_signal_new_selected_pair (agent, pair->stream_id,
component->id, pair->local, pair->remote); component->id, pair->local, pair->remote);
} }
......
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