summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOlivier CrĂȘte <olivier.crete@collabora.com>2014-04-25 00:55:17 (GMT)
committerOlivier CrĂȘte <olivier.crete@collabora.com>2014-04-25 00:55:57 (GMT)
commit648571db2fe74dcff9e3ef41d9d6b6f38066f8be (patch)
treee373391c92ae221c64d07e2d06b12d32235b69f4
parent0cc1a1610e6e1024edcc37dd77008ed3e791d276 (diff)
downloadlibnice-648571db2fe74dcff9e3ef41d9d6b6f38066f8be.tar.gz
libnice-648571db2fe74dcff9e3ef41d9d6b6f38066f8be.tar.xz
stream: No need to pass RNG to stream_restart()
It can now take it from the agent.
-rw-r--r--agent/agent.c4
-rw-r--r--agent/stream.c4
-rw-r--r--agent/stream.h2
3 files changed, 5 insertions, 5 deletions
diff --git a/agent/agent.c b/agent/agent.c
index c60ca47..ddf9319 100644
--- a/agent/agent.c
+++ b/agent/agent.c
@@ -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:
diff --git a/agent/stream.c b/agent/stream.c
index 041306d..75c81c9 100644
--- a/agent/stream.c
+++ b/agent/stream.c
@@ -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;
diff --git a/agent/stream.h b/agent/stream.h
index 7b96bd0..9dd08ac 100644
--- a/agent/stream.h
+++ b/agent/stream.h
@@ -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