diff options
author | Marvin W <git@larma.de> | 2021-04-11 15:12:26 +0200 |
---|---|---|
committer | Marvin W <git@larma.de> | 2021-04-11 15:13:22 +0200 |
commit | e9ff660537f7c00281395f8a001f7554e116efff (patch) | |
tree | 9b97c2cb7ce1e9f600a0d865f38063b22824e52d /plugins/ice/src | |
parent | 369755781e4d4fae2f6d790b93ba824e7e049c33 (diff) | |
download | dino-e9ff660537f7c00281395f8a001f7554e116efff.tar.gz dino-e9ff660537f7c00281395f8a001f7554e116efff.zip |
Fix usage of old libnice versions
Diffstat (limited to 'plugins/ice/src')
-rw-r--r-- | plugins/ice/src/transport_parameters.vala | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/plugins/ice/src/transport_parameters.vala b/plugins/ice/src/transport_parameters.vala index 6d160c62..8766e744 100644 --- a/plugins/ice/src/transport_parameters.vala +++ b/plugins/ice/src/transport_parameters.vala @@ -176,8 +176,7 @@ public class Dino.Plugins.Ice.TransportParameters : JingleIceUdp.IceUdpTransport SList<Nice.Candidate> candidates = new SList<Nice.Candidate>(); foreach (JingleIceUdp.Candidate candidate in remote_candidates) { if (candidate.component == i) { - Nice.Candidate nc = candidate_to_nice(candidate); - candidates.append(nc); + candidates.append(candidate_to_nice(candidate)); } } int new_candidates = agent.set_remote_candidates(stream_id, i, candidates); @@ -203,9 +202,8 @@ public class Dino.Plugins.Ice.TransportParameters : JingleIceUdp.IceUdpTransport foreach (JingleIceUdp.Candidate candidate in remote_candidates) { if (candidate.ip.has_prefix("fe80::")) continue; if (candidate.component == i) { - Nice.Candidate nc = candidate_to_nice(candidate); - candidates.append(nc); - debug("remote candidate: %s", agent.generate_local_candidate_sdp(nc)); + candidates.append(candidate_to_nice(candidate)); + debug("remote candidate: %s", agent.generate_local_candidate_sdp(candidate_to_nice(candidate))); } } int new_candidates = agent.set_remote_candidates(stream_id, i, candidates); |