Commit ed70ea09 authored by Jakub Adam's avatar Jakub Adam

agent: Don't require stream names to parse remote SDP

The streams are matched by the order in which they appear in the SDP,
not by name, so insisting on local streams to have one makes no sense.

This likely should have been removed in 5972db04.
parent beea9b38
......@@ -6211,7 +6211,7 @@ nice_agent_parse_remote_sdp (NiceAgent *agent, const gchar *sdp)
NiceStream *current_stream = NULL;
gchar **sdp_lines = NULL;
GSList *l, *stream_item = NULL;
GSList *stream_item = NULL;
gint i;
gint ret = 0;
......@@ -6220,15 +6220,6 @@ nice_agent_parse_remote_sdp (NiceAgent *agent, const gchar *sdp)
agent_lock (agent);
for (l = agent->streams; l; l = l->next) {
NiceStream *stream = l->data;
if (stream->name == NULL) {
ret = -1;
goto done;
sdp_lines = g_strsplit (sdp, "\n", 0);
for (i = 0; sdp_lines && sdp_lines[i]; i++) {
if (g_str_has_prefix (sdp_lines[i], "m=")) {
......@@ -1487,15 +1487,6 @@ nice_agent_generate_local_candidate_sdp (
* Parse an SDP string and extracts candidates and credentials from it and sets
* them on the agent.
This function will return an error if a stream has not been assigned a name
with nice_agent_set_stream_name() as it becomes troublesome to assign the
streams from the agent to the streams in the SDP.
* <para>See also: nice_agent_set_stream_name() </para>
* <para>See also: nice_agent_generate_local_sdp() </para>
* <para>See also: nice_agent_parse_remote_stream_sdp() </para>
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