Commit d9d3d5c8 authored by Olivier Crête's avatar Olivier Crête

agent: stream_new can't fail

parent f9aac6fd
...@@ -1444,7 +1444,7 @@ nice_agent_add_stream ( ...@@ -1444,7 +1444,7 @@ nice_agent_add_stream (
agent_lock(); agent_lock();
stream = stream_new (n_components); stream = stream_new (n_components);
if (stream) {
agent->streams = g_slist_append (agent->streams, stream); agent->streams = g_slist_append (agent->streams, stream);
stream->id = agent->next_stream_id++; stream->id = agent->next_stream_id++;
nice_debug ("Agent %p : allocating stream id %u (%p)", agent, stream->id, stream); nice_debug ("Agent %p : allocating stream id %u (%p)", agent, stream->id, stream);
...@@ -1475,7 +1475,6 @@ nice_agent_add_stream ( ...@@ -1475,7 +1475,6 @@ nice_agent_add_stream (
} }
stream_initialize_credentials (stream, agent->rng); stream_initialize_credentials (stream, agent->rng);
}
ret = stream->id; ret = stream->id;
......
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