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
648571db
Commit
648571db
authored
Apr 24, 2014
by
Olivier Crête
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
stream: No need to pass RNG to stream_restart()
It can now take it from the agent.
parent
0cc1a161
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
5 deletions
+5
-5
agent/agent.c
agent/agent.c
+2
-2
agent/stream.c
agent/stream.c
+2
-2
agent/stream.h
agent/stream.h
+1
-1
No files found.
agent/agent.c
View file @
648571db
...
@@ -3705,7 +3705,7 @@ nice_agent_restart (
...
@@ -3705,7 +3705,7 @@ nice_agent_restart (
/* step: reset local credentials for the stream and
/* step: reset local credentials for the stream and
* clean up the list of remote candidates */
* clean up the list of remote candidates */
stream_restart
(
agent
,
stream
,
agent
->
rng
);
stream_restart
(
agent
,
stream
);
}
}
agent_unlock_and_emit
(
agent
);
agent_unlock_and_emit
(
agent
);
...
@@ -3730,7 +3730,7 @@ nice_agent_restart_stream (
...
@@ -3730,7 +3730,7 @@ nice_agent_restart_stream (
/* step: reset local credentials for the stream and
/* step: reset local credentials for the stream and
* clean up the list of remote candidates */
* clean up the list of remote candidates */
stream_restart
(
agent
,
stream
,
agent
->
rng
);
stream_restart
(
agent
,
stream
);
res
=
TRUE
;
res
=
TRUE
;
done:
done:
...
...
agent/stream.c
View file @
648571db
...
@@ -133,7 +133,7 @@ void stream_initialize_credentials (Stream *stream, NiceRNG *rng)
...
@@ -133,7 +133,7 @@ void stream_initialize_credentials (Stream *stream, NiceRNG *rng)
* session.
* session.
*/
*/
void
void
stream_restart
(
NiceAgent
*
agent
,
Stream
*
stream
,
NiceRNG
*
rng
)
stream_restart
(
NiceAgent
*
agent
,
Stream
*
stream
)
{
{
GSList
*
i
;
GSList
*
i
;
...
@@ -142,7 +142,7 @@ stream_restart (NiceAgent *agent, Stream *stream, NiceRNG *rng)
...
@@ -142,7 +142,7 @@ stream_restart (NiceAgent *agent, Stream *stream, NiceRNG *rng)
stream
->
initial_binding_request_received
=
FALSE
;
stream
->
initial_binding_request_received
=
FALSE
;
stream_initialize_credentials
(
stream
,
rng
);
stream_initialize_credentials
(
stream
,
agent
->
rng
);
for
(
i
=
stream
->
components
;
i
;
i
=
i
->
next
)
{
for
(
i
=
stream
->
components
;
i
;
i
=
i
->
next
)
{
Component
*
component
=
i
->
data
;
Component
*
component
=
i
->
data
;
...
...
agent/stream.h
View file @
648571db
...
@@ -93,7 +93,7 @@ void
...
@@ -93,7 +93,7 @@ void
stream_initialize_credentials
(
Stream
*
stream
,
NiceRNG
*
rng
);
stream_initialize_credentials
(
Stream
*
stream
,
NiceRNG
*
rng
);
void
void
stream_restart
(
NiceAgent
*
agent
,
Stream
*
stream
,
NiceRNG
*
rng
);
stream_restart
(
NiceAgent
*
agent
,
Stream
*
stream
);
G_END_DECLS
G_END_DECLS
...
...
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