From: Fabrice Bellet Date: Wed, 12 Feb 2020 14:40:52 +0000 (+0100) Subject: candidate: fix local preferences of udp candidates X-Git-Tag: 0.1.17~80 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=5d2995c2952218f039b40f083a3eddddfa88272d;p=platform%2Fupstream%2Flibnice.git candidate: fix local preferences of udp candidates udp candidates failed to call nice_candidate_ip_local_preferences() and were all given the same local preference priority. --- diff --git a/agent/candidate.c b/agent/candidate.c index b6e7012..c1f9dec 100644 --- a/agent/candidate.c +++ b/agent/candidate.c @@ -215,7 +215,7 @@ nice_candidate_ice_local_preference (const NiceCandidate *candidate) break; case NICE_CANDIDATE_TRANSPORT_UDP: default: - return 1; + direction_preference = 1; break; }