Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
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-2-2
Commits
66ecba4d
Commit
66ecba4d
authored
Sep 08, 2003
by
Laurent Aimar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* sdp: do not register 'rtp' name for access.
parent
b3818fbe
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
4 deletions
+11
-4
modules/demux/sdp.c
modules/demux/sdp.c
+11
-4
No files found.
modules/demux/sdp.c
View file @
66ecba4d
...
...
@@ -2,7 +2,7 @@
* sdp.c: SDP parser and builtin UDP/RTP/RTSP
*****************************************************************************
* Copyright (C) 2001 VideoLAN
* $Id: sdp.c,v 1.
6 2003/09/08 07:36:34
fenrir Exp $
* $Id: sdp.c,v 1.
7 2003/09/08 07:38:30
fenrir Exp $
*
* Authors: Laurent Aimar <fenrir@via.ecp.fr>
*
...
...
@@ -50,7 +50,7 @@ vlc_module_begin();
add_submodule
();
set_description
(
_
(
"RTSP/RTP describe"
)
);
add_shortcut
(
"rtp"
);
add_shortcut
(
"rtp
_sdp
"
);
add_shortcut
(
"rtsp"
);
set_capability
(
"access"
,
0
);
set_callbacks
(
DescribeOpen
,
DescribeClose
);
...
...
@@ -105,7 +105,7 @@ static int DescribeOpen( vlc_object_t *p_this )
if
(
p_input
->
psz_access
==
NULL
||
(
strcmp
(
p_input
->
psz_access
,
"rtsp"
)
&&
strcmp
(
p_input
->
psz_access
,
"rtp"
)
)
)
strcmp
(
p_input
->
psz_access
,
"rtp
_sdp
"
)
)
)
{
msg_Dbg
(
p_input
,
"invalid access name"
);
return
VLC_EGENERIC
;
...
...
@@ -115,7 +115,14 @@ static int DescribeOpen( vlc_object_t *p_this )
* something like rtsp/<demuxer>:// */
psz_uri
=
malloc
(
strlen
(
p_input
->
psz_access
)
+
strlen
(
p_input
->
psz_name
)
+
4
);
if
(
!
strcmp
(
p_input
->
psz_access
,
"rtp_sdp"
)
)
{
sprintf
(
psz_uri
,
"rtp://%s"
,
p_input
->
psz_name
);
}
else
{
sprintf
(
psz_uri
,
"%s://%s"
,
p_input
->
psz_access
,
p_input
->
psz_name
);
}
msg_Dbg
(
p_input
,
"describing %s"
,
psz_uri
);
...
...
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