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
e3d8fbf9
Commit
e3d8fbf9
authored
Nov 04, 2008
by
Youness Alaoui
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lock the mutex before accessing agent->discovery_unsched_items
parent
f19e09a5
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
agent/agent.c
agent/agent.c
+4
-3
No files found.
agent/agent.c
View file @
e3d8fbf9
...
@@ -1208,11 +1208,12 @@ nice_agent_set_remote_candidates (NiceAgent *agent, guint stream_id, guint compo
...
@@ -1208,11 +1208,12 @@ nice_agent_set_remote_candidates (NiceAgent *agent, guint stream_id, guint compo
const
GSList
*
i
;
const
GSList
*
i
;
int
added
=
0
;
int
added
=
0
;
g_static_rec_mutex_lock
(
&
agent
->
mutex
);
if
(
agent
->
discovery_unsched_items
>
0
)
if
(
agent
->
discovery_unsched_items
>
0
)
{
g_static_rec_mutex_unlock
(
&
agent
->
mutex
);
return
-
1
;
return
-
1
;
}
g_static_rec_mutex_lock
(
&
agent
->
mutex
);
for
(
i
=
candidates
;
i
&&
added
>=
0
;
i
=
i
->
next
)
{
for
(
i
=
candidates
;
i
&&
added
>=
0
;
i
=
i
->
next
)
{
NiceCandidate
*
d
=
(
NiceCandidate
*
)
i
->
data
;
NiceCandidate
*
d
=
(
NiceCandidate
*
)
i
->
data
;
...
...
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