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
c251cbfd
Commit
c251cbfd
authored
May 20, 2010
by
Olivier Crête
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
agent: Remove useless checks from priv_add_new_candidate_discovery_stun
parent
c5f52ce9
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
20 deletions
+13
-20
agent/agent.c
agent/agent.c
+13
-20
No files found.
agent/agent.c
View file @
c251cbfd
...
@@ -1300,16 +1300,12 @@ priv_add_new_candidate_discovery_stun (NiceAgent *agent,
...
@@ -1300,16 +1300,12 @@ priv_add_new_candidate_discovery_stun (NiceAgent *agent,
Stream
*
stream
,
guint
component_id
)
Stream
*
stream
,
guint
component_id
)
{
{
CandidateDiscovery
*
cdisco
;
CandidateDiscovery
*
cdisco
;
GSList
*
modified_list
;
/* note: no need to check for redundant candidates, as this is
/* note: no need to check for redundant candidates, as this is
* done later on in the process */
* done later on in the process */
cdisco
=
g_slice_new0
(
CandidateDiscovery
);
cdisco
=
g_slice_new0
(
CandidateDiscovery
);
if
(
cdisco
)
{
modified_list
=
g_slist_append
(
agent
->
discovery_list
,
cdisco
);
if
(
modified_list
)
{
cdisco
->
type
=
NICE_CANDIDATE_TYPE_SERVER_REFLEXIVE
;
cdisco
->
type
=
NICE_CANDIDATE_TYPE_SERVER_REFLEXIVE
;
cdisco
->
nicesock
=
socket
;
cdisco
->
nicesock
=
socket
;
cdisco
->
server
=
server
;
cdisco
->
server
=
server
;
...
@@ -1321,14 +1317,11 @@ priv_add_new_candidate_discovery_stun (NiceAgent *agent,
...
@@ -1321,14 +1317,11 @@ priv_add_new_candidate_discovery_stun (NiceAgent *agent,
nice_debug
(
"Agent %p : Adding new srv-rflx candidate discovery %p
\n
"
,
nice_debug
(
"Agent %p : Adding new srv-rflx candidate discovery %p
\n
"
,
agent
,
cdisco
);
agent
,
cdisco
);
agent
->
discovery_list
=
modified_list
;
agent
->
discovery_list
=
g_slist_append
(
agent
->
discovery_list
,
cdisco
);
++
agent
->
discovery_unsched_items
;
++
agent
->
discovery_unsched_items
;
}
return
TRUE
;
return
TRUE
;
}
return
FALSE
;
}
}
static
gboolean
static
gboolean
...
...
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