Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-1.1
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
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
videolan
vlc-1.1
Commits
50f3a306
Commit
50f3a306
authored
Mar 19, 2008
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
SAP: m= subtype is not supposed to be a number in with the "udp"
protocol, so don't try to use atoi() there.
parent
28737ffc
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
4 deletions
+8
-4
modules/services_discovery/sap.c
modules/services_discovery/sap.c
+8
-4
No files found.
modules/services_discovery/sap.c
View file @
50f3a306
...
@@ -969,15 +969,19 @@ static int ParseConnection( vlc_object_t *p_obj, sdp_t *p_sdp )
...
@@ -969,15 +969,19 @@ static int ParseConnection( vlc_object_t *p_obj, sdp_t *p_sdp )
if
(
subtype
==
NULL
)
if
(
subtype
==
NULL
)
{
{
msg_Dbg
(
p_obj
,
"missing SDP media subtype: %s"
,
sdp_proto
);
msg_Dbg
(
p_obj
,
"missing SDP media subtype: %s"
,
sdp_proto
);
p_sdp
->
i_media_type
=
0
;
free
(
sdp_proto
);
return
VLC_EGENERIC
;
}
}
else
else
{
{
*
subtype
++
=
'\0'
;
*
subtype
++
=
'\0'
;
/* FIXME: check for multiple payload types in RTP/AVP case.
* FIXME: check for "mpeg" subtype in raw udp case. */
if
(
!
strcasecmp
(
sdp_proto
,
"udp"
))
p_sdp
->
i_media_type
=
33
;
else
p_sdp
->
i_media_type
=
atoi
(
subtype
);
p_sdp
->
i_media_type
=
atoi
(
subtype
);
}
}
if
(
p_sdp
->
i_media_type
==
0
)
p_sdp
->
i_media_type
=
33
;
/* RTP protocol, nul, VLC shortcut, nul, flags byte as follow:
/* RTP protocol, nul, VLC shortcut, nul, flags byte as follow:
* 0x1: Connection-Oriented media. */
* 0x1: Connection-Oriented media. */
...
...
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