summaryrefslogtreecommitdiff
path: root/agent/stream.c
diff options
context:
space:
mode:
authorOlivier CrĂȘte <olivier.crete@collabora.com>2014-04-24 20:55:17 -0400
committerOlivier CrĂȘte <olivier.crete@collabora.com>2014-04-24 20:55:57 -0400
commit648571db2fe74dcff9e3ef41d9d6b6f38066f8be (patch)
treee373391c92ae221c64d07e2d06b12d32235b69f4 /agent/stream.c
parent0cc1a1610e6e1024edcc37dd77008ed3e791d276 (diff)
downloadlibnice-648571db2fe74dcff9e3ef41d9d6b6f38066f8be.tar.gz
stream: No need to pass RNG to stream_restart()
It can now take it from the agent.
Diffstat (limited to 'agent/stream.c')
-rw-r--r--agent/stream.c4
1 files changed, 2 insertions, 2 deletions
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;