Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
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
Commits
29a99a61
Commit
29a99a61
authored
Mar 19, 2008
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
SAP: don't try to parse media subtype for now, should fix #1467
parent
d07aa56b
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
20 deletions
+21
-20
modules/services_discovery/sap.c
modules/services_discovery/sap.c
+21
-20
No files found.
modules/services_discovery/sap.c
View file @
29a99a61
...
...
@@ -910,7 +910,7 @@ static int ParseConnection( vlc_object_t *p_obj, sdp_t *p_sdp )
char
*
psz_eof
=
NULL
;
char
*
psz_parse
=
NULL
;
char
*
psz_uri
=
NULL
;
char
*
psz_proto
=
NULL
;
c
onst
c
har
*
psz_proto
=
NULL
;
char
psz_source
[
258
]
=
""
;
int
i_port
=
0
;
...
...
@@ -1041,29 +1041,31 @@ static int ParseConnection( vlc_object_t *p_obj, sdp_t *p_sdp )
if
(
psz_eof
)
{
*
psz_eof
=
'\0'
;
psz_proto
=
strdup
(
psz_parse
);
psz_parse
=
psz_eof
+
1
;
if
(
!
strcmp
(
psz_parse
,
"RTP/AVP"
)
)
{
psz_proto
=
"rtp"
;
p_sdp
->
i_media_type
=
atoi
(
psz_parse
);
}
else
if
(
!
strcasecmp
(
psz_parse
,
"udp"
)
)
{
msg_Dbg
(
p_obj
,
"incorrect m field, %s"
,
p_sdp
->
psz_media
)
;
psz_proto
=
"udp"
;
p_sdp
->
i_media_type
=
33
;
psz_proto
=
strdup
(
psz_parse
);
}
}
if
(
psz_proto
&&
!
strncmp
(
psz_proto
,
"RTP/AVP"
,
7
)
)
else
{
free
(
psz_proto
);
psz_proto
=
strdup
(
"rtp"
);
msg_Warn
(
p_obj
,
"unknown transport protocol %s"
,
psz_parse
);
FREE
(
psz_uri
);
return
VLC_EGENERIC
;
}
}
if
(
psz_proto
&&
!
strncasecmp
(
psz_proto
,
"UDP"
,
3
)
)
else
{
free
(
psz_proto
);
psz_proto
=
strdup
(
"udp"
);
msg_Warn
(
p_obj
,
"unknown top parse m field (3)"
);
FREE
(
psz_uri
);
return
VLC_EGENERIC
;
}
}
/* FIXME: HTTP support */
...
...
@@ -1092,7 +1094,6 @@ static int ParseConnection( vlc_object_t *p_obj, sdp_t *p_sdp )
psz_uri
,
i_port
);
FREE
(
psz_uri
);
FREE
(
psz_proto
);
return
VLC_SUCCESS
;
}
...
...
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