• Youness Alaoui's avatar
    Do not modify agent->local_addresses in the nice_agent_gather_candidates. · 7deb6e30
    Youness Alaoui authored
    The agent->local_addresses should not change when we gather_candidates, let
    the user set it with nice_agent_add_local_address, if he does not, then we
    should auto-discover interface *during* the gathering process, and not save it.
    Currently, when we call gather_candidates, we discover interfaces and save it to
    agent->local_addresses as if someone called the _add_local_address API... problem
    is that if we have 2/3 interfaces, we do an audio call.. an interface disappears
    (vmware closed/whatever) then we upgrade to a video call, then libnice will reuse
    the old interface list instead of the current ones..