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
c4766322
Commit
c4766322
authored
May 20, 2010
by
Olivier Crête
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
conncheck: Remove useless checks from priv_add_peer_reflexive_pair
parent
3647a7ae
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
24 deletions
+22
-24
agent/conncheck.c
agent/conncheck.c
+22
-24
No files found.
agent/conncheck.c
View file @
c4766322
...
...
@@ -1905,31 +1905,29 @@ static int priv_store_pending_check (NiceAgent *agent, Component *component,
static
CandidateCheckPair
*
priv_add_peer_reflexive_pair
(
NiceAgent
*
agent
,
guint
stream_id
,
guint
component_id
,
NiceCandidate
*
local_cand
,
CandidateCheckPair
*
parent_pair
)
{
CandidateCheckPair
*
pair
=
g_slice_new0
(
CandidateCheckPair
);
if
(
pair
)
{
Stream
*
stream
=
agent_find_stream
(
agent
,
stream_id
);
GSList
*
modified_list
=
g_slist_append
(
stream
->
conncheck_list
,
pair
);
if
(
modified_list
)
{
stream
->
conncheck_list
=
modified_list
;
pair
->
agent
=
agent
;
pair
->
stream_id
=
stream_id
;
pair
->
component_id
=
component_id
;;
pair
->
local
=
local_cand
;
pair
->
remote
=
parent_pair
->
remote
;
pair
->
state
=
NICE_CHECK_DISCOVERED
;
nice_debug
(
"Agent %p : pair %p state DISCOVERED"
,
agent
,
pair
);
g_snprintf
(
pair
->
foundation
,
NICE_CANDIDATE_PAIR_MAX_FOUNDATION
,
"%s:%s"
,
local_cand
->
foundation
,
parent_pair
->
remote
->
foundation
);
if
(
agent
->
controlling_mode
==
TRUE
)
pair
->
priority
=
nice_candidate_pair_priority
(
local_cand
->
priority
,
parent_pair
->
priority
);
else
pair
->
priority
=
nice_candidate_pair_priority
(
parent_pair
->
priority
,
local_cand
->
priority
);
pair
->
nominated
=
FALSE
;
pair
->
controlling
=
agent
->
controlling_mode
;
nice_debug
(
"Agent %p : added a new peer-discovered pair with foundation of '%s'."
,
agent
,
pair
->
foundation
);
return
pair
;
}
}
Stream
*
stream
=
agent_find_stream
(
agent
,
stream_id
);
return
NULL
;
stream
->
conncheck_list
=
g_slist_append
(
stream
->
conncheck_list
,
pair
);
pair
->
agent
=
agent
;
pair
->
stream_id
=
stream_id
;
pair
->
component_id
=
component_id
;;
pair
->
local
=
local_cand
;
pair
->
remote
=
parent_pair
->
remote
;
pair
->
state
=
NICE_CHECK_DISCOVERED
;
nice_debug
(
"Agent %p : pair %p state DISCOVERED"
,
agent
,
pair
);
g_snprintf
(
pair
->
foundation
,
NICE_CANDIDATE_PAIR_MAX_FOUNDATION
,
"%s:%s"
,
local_cand
->
foundation
,
parent_pair
->
remote
->
foundation
);
if
(
agent
->
controlling_mode
==
TRUE
)
pair
->
priority
=
nice_candidate_pair_priority
(
local_cand
->
priority
,
parent_pair
->
priority
);
else
pair
->
priority
=
nice_candidate_pair_priority
(
parent_pair
->
priority
,
local_cand
->
priority
);
pair
->
nominated
=
FALSE
;
pair
->
controlling
=
agent
->
controlling_mode
;
nice_debug
(
"Agent %p : added a new peer-discovered pair with foundation of '%s'."
,
agent
,
pair
->
foundation
);
return
pair
;
}
/*
...
...
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