Commit 648571db authored by Olivier Crête's avatar Olivier Crête

stream: No need to pass RNG to stream_restart()

It can now take it from the agent.
parent 0cc1a161
......@@ -3705,7 +3705,7 @@ nice_agent_restart (
/* step: reset local credentials for the stream and
* clean up the list of remote candidates */
stream_restart (agent, stream, agent->rng);
stream_restart (agent, stream);
}
agent_unlock_and_emit (agent);
......@@ -3730,7 +3730,7 @@ nice_agent_restart_stream (
/* step: reset local credentials for the stream and
* clean up the list of remote candidates */
stream_restart (agent, stream, agent->rng);
stream_restart (agent, stream);
res = TRUE;
done:
......
......@@ -133,7 +133,7 @@ void stream_initialize_credentials (Stream *stream, NiceRNG *rng)
* session.
*/
void
stream_restart (NiceAgent *agent, Stream *stream, NiceRNG *rng)
stream_restart (NiceAgent *agent, Stream *stream)
{
GSList *i;
......@@ -142,7 +142,7 @@ stream_restart (NiceAgent *agent, Stream *stream, NiceRNG *rng)
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) {
Component *component = i->data;
......
......@@ -93,7 +93,7 @@ void
stream_initialize_credentials (Stream *stream, NiceRNG *rng);
void
stream_restart (NiceAgent *agent, Stream *stream, NiceRNG *rng);
stream_restart (NiceAgent *agent, Stream *stream);
G_END_DECLS
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment