summaryrefslogtreecommitdiff
path: root/agent/stream.c
diff options
context:
space:
mode:
authorOlivier CrĂȘte <olivier.crete@collabora.com>2018-10-28 13:54:45 +0000
committerOlivier CrĂȘte <olivier.crete@collabora.com>2018-10-28 15:18:58 +0000
commit16d51b09cf43349c10dae93b9a45de5180de5213 (patch)
treea39dfa97128fd1b40f80aa6032ea7de4b13d379d /agent/stream.c
parentda41258a21102f63ec5d5b2dc20d303f772eb195 (diff)
downloadlibnice-16d51b09cf43349c10dae93b9a45de5180de5213.tar.gz
agent: Remove explicit parent pointers
Remove all pointers that don't include have a reference except to agents
Diffstat (limited to 'agent/stream.c')
-rw-r--r--agent/stream.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/agent/stream.c b/agent/stream.c
index 533ff15..c1bd87b 100644
--- a/agent/stream.c
+++ b/agent/stream.c
@@ -58,13 +58,15 @@ nice_stream_finalize (GObject *obj);
* @brief ICE stream functionality
*/
NiceStream *
-nice_stream_new (guint n_components, NiceAgent *agent)
+nice_stream_new (guint stream_id, guint n_components, NiceAgent *agent)
{
NiceStream *stream = NULL;
guint n;
stream = g_object_new (NICE_TYPE_STREAM, NULL);
+ stream->id = stream_id;
+
/* Create the components. */
for (n = 0; n < n_components; n++) {
NiceComponent *component = NULL;