Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
libnice
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
cpp-libs
libnice
Commits
0fe5f7c2
Commit
0fe5f7c2
authored
Jun 08, 2009
by
Youness Alaoui
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix peer reflexive candidate's priorities for msn/google
parent
0407fbbd
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
1 deletion
+13
-1
agent/discovery.c
agent/discovery.c
+13
-1
No files found.
agent/discovery.c
View file @
0fe5f7c2
...
@@ -729,7 +729,19 @@ NiceCandidate *discovery_learn_remote_peer_reflexive_candidate (
...
@@ -729,7 +729,19 @@ NiceCandidate *discovery_learn_remote_peer_reflexive_candidate (
candidate
->
transport
=
NICE_CANDIDATE_TRANSPORT_UDP
;
candidate
->
transport
=
NICE_CANDIDATE_TRANSPORT_UDP
;
candidate
->
addr
=
*
remote_address
;
candidate
->
addr
=
*
remote_address
;
candidate
->
base_addr
=
*
remote_address
;
candidate
->
base_addr
=
*
remote_address
;
candidate
->
priority
=
priority
;
/* if the check didn't contain the PRIORITY attribute, then the priority will
* be 0, which is invalid... */
if
(
priority
!=
0
)
{
candidate
->
priority
=
priority
;
}
else
if
(
agent
->
compatibility
==
NICE_COMPATIBILITY_GOOGLE
)
{
candidate
->
priority
=
nice_candidate_jingle_priority
(
candidate
);
}
else
if
(
agent
->
compatibility
==
NICE_COMPATIBILITY_MSN
)
{
candidate
->
priority
=
nice_candidate_msn_priority
(
candidate
);
}
else
{
candidate
->
priority
=
nice_candidate_ice_priority_full
(
NICE_CANDIDATE_TYPE_PREF_PEER_REFLEXIVE
,
0
,
component
->
id
);
}
candidate
->
stream_id
=
stream
->
id
;
candidate
->
stream_id
=
stream
->
id
;
candidate
->
component_id
=
component
->
id
;
candidate
->
component_id
=
component
->
id
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment