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
6eb3fc68
Commit
6eb3fc68
authored
Feb 04, 2013
by
Youness Alaoui
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Refactor nice_agent_set_stream_tos to use agent_find_stream internal API
parent
635da750
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
13 deletions
+15
-13
agent/agent.c
agent/agent.c
+15
-13
No files found.
agent/agent.c
View file @
6eb3fc68
...
@@ -2958,25 +2958,27 @@ NICEAPI_EXPORT void
...
@@ -2958,25 +2958,27 @@ NICEAPI_EXPORT void
nice_agent_set_stream_tos
(
NiceAgent
*
agent
,
nice_agent_set_stream_tos
(
NiceAgent
*
agent
,
guint
stream_id
,
gint
tos
)
guint
stream_id
,
gint
tos
)
{
{
GSList
*
i
,
*
j
,
*
k
;
GSList
*
i
,
*
j
;
Stream
*
stream
;
agent_lock
();
agent_lock
();
for
(
i
=
agent
->
streams
;
i
;
i
=
i
->
next
)
{
stream
=
agent_find_stream
(
agent
,
stream_id
);
Stream
*
stream
=
i
->
data
;
if
(
stream
==
NULL
)
if
(
stream
->
id
==
stream_id
)
{
goto
done
;
stream
->
tos
=
tos
;
stream
->
tos
=
tos
;
for
(
j
=
stream
->
components
;
j
;
j
=
j
->
next
)
{
for
(
i
=
stream
->
components
;
i
;
i
=
i
->
next
)
{
Component
*
component
=
j
->
data
;
Component
*
component
=
i
->
data
;
for
(
j
=
component
->
local_candidates
;
j
;
j
=
j
->
next
)
{
NiceCandidate
*
local_candidate
=
j
->
data
;
for
(
k
=
component
->
local_candidates
;
k
;
k
=
k
->
next
)
{
NiceCandidate
*
local_candidate
=
k
->
data
;
_priv_set_socket_tos
(
agent
,
local_candidate
->
sockptr
,
tos
);
_priv_set_socket_tos
(
agent
,
local_candidate
->
sockptr
,
tos
);
}
}
}
}
}
}
done:
agent_unlock
();
agent_unlock
();
}
}
...
...
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