Commit f9cfc6da authored by Youness Alaoui's avatar Youness Alaoui

no need to check for local_addresses when adding new streams

parent 92b17624
...@@ -791,11 +791,6 @@ nice_agent_add_stream ( ...@@ -791,11 +791,6 @@ nice_agent_add_stream (
g_static_rec_mutex_lock (&agent->mutex); g_static_rec_mutex_lock (&agent->mutex);
if (!agent->local_addresses) {
g_warning ("Agent %p: no local addresses defined!", agent);
goto done;
}
stream = stream_new (n_components); stream = stream_new (n_components);
if (stream) { if (stream) {
modified_list = g_slist_append (agent->streams, stream); modified_list = g_slist_append (agent->streams, stream);
...@@ -813,7 +808,6 @@ nice_agent_add_stream ( ...@@ -813,7 +808,6 @@ nice_agent_add_stream (
ret = stream->id; ret = stream->id;
done:
g_static_rec_mutex_unlock (&agent->mutex); g_static_rec_mutex_unlock (&agent->mutex);
return ret; return ret;
} }
......
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