Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
libnice
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
cpp-libs
libnice
Commits
73926858
Commit
73926858
authored
Apr 22, 2015
by
Olivier Crête
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
agent: Fix SDP line counting
Fixes SDP parsing which I broke in commit
5972db04
parent
e3860ddf
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
agent/agent.c
agent/agent.c
+5
-4
No files found.
agent/agent.c
View file @
73926858
...
...
@@ -5654,7 +5654,7 @@ nice_agent_parse_remote_sdp (NiceAgent *agent, const gchar *sdp)
{
Stream
*
current_stream
=
NULL
;
gchar
**
sdp_lines
=
NULL
;
GSList
*
l
,
*
stream_item
;
GSList
*
l
,
*
stream_item
=
NULL
;
gint
i
;
gint
ret
=
0
;
...
...
@@ -5673,10 +5673,11 @@ nice_agent_parse_remote_sdp (NiceAgent *agent, const gchar *sdp)
}
sdp_lines
=
g_strsplit
(
sdp
,
"
\n
"
,
0
);
stream_item
=
agent
->
streams
;
current_stream
=
stream_item
->
data
;
for
(
i
=
0
;
sdp_lines
&&
sdp_lines
[
i
];
i
++
)
{
if
(
g_str_has_prefix
(
sdp_lines
[
i
],
"m="
))
{
if
(
stream_item
==
NULL
)
stream_item
=
agent
->
streams
;
else
stream_item
=
stream_item
->
next
;
if
(
!
stream_item
)
{
g_critical
(
"More streams in SDP than in agent"
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment