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
3adc5bfc
Commit
3adc5bfc
authored
Sep 09, 2007
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
We only support "rtsp"; do not pretend to support rtspu, rtsps and
whatever else might ever be invented
parent
6dfbbb80
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
18 deletions
+8
-18
modules/stream_out/rtp.c
modules/stream_out/rtp.c
+8
-18
No files found.
modules/stream_out/rtp.c
View file @
3adc5bfc
...
@@ -312,13 +312,12 @@ static int Open( vlc_object_t *p_this )
...
@@ -312,13 +312,12 @@ static int Open( vlc_object_t *p_this )
for
(
p_cfg
=
p_stream
->
p_cfg
;
p_cfg
!=
NULL
;
p_cfg
=
p_cfg
->
p_next
)
for
(
p_cfg
=
p_stream
->
p_cfg
;
p_cfg
!=
NULL
;
p_cfg
=
p_cfg
->
p_next
)
{
{
if
(
!
strcmp
(
p_cfg
->
psz_name
,
"sdp"
)
)
if
(
!
strcmp
(
p_cfg
->
psz_name
,
"sdp"
)
&&
(
p_cfg
->
psz_value
!=
NULL
)
&&
!
strncasecmp
(
p_cfg
->
psz_value
,
"rtsp:"
,
5
)
)
{
{
if
(
p_cfg
->
psz_value
&&
!
strncasecmp
(
p_cfg
->
psz_value
,
"rtsp"
,
4
)
)
b_rtsp
=
VLC_TRUE
;
{
break
;
b_rtsp
=
VLC_TRUE
;
break
;
}
}
}
}
}
if
(
!
b_rtsp
)
if
(
!
b_rtsp
)
...
@@ -326,24 +325,15 @@ static int Open( vlc_object_t *p_this )
...
@@ -326,24 +325,15 @@ static int Open( vlc_object_t *p_this )
psz
=
var_GetNonEmptyString
(
p_stream
,
SOUT_CFG_PREFIX
"sdp"
);
psz
=
var_GetNonEmptyString
(
p_stream
,
SOUT_CFG_PREFIX
"sdp"
);
if
(
psz
!=
NULL
)
if
(
psz
!=
NULL
)
{
{
if
(
!
strncasecmp
(
psz
,
"rtsp
"
,
4
)
)
if
(
!
strncasecmp
(
psz
,
"rtsp
:"
,
5
)
)
b_rtsp
=
VLC_TRUE
;
b_rtsp
=
VLC_TRUE
;
free
(
psz
);
free
(
psz
);
}
}
}
}
if
(
p_sys
->
psz_destination
==
NULL
)
if
(
(
p_sys
->
psz_destination
==
NULL
)
&&
!
b_rtsp
)
{
if
(
!
b_rtsp
)
{
msg_Err
(
p_stream
,
"missing destination and not in RTSP mode"
);
free
(
p_sys
);
return
VLC_EGENERIC
;
}
}
else
if
(
p_sys
->
i_port
<=
0
)
{
{
msg_Err
(
p_stream
,
"
invalid port
"
);
msg_Err
(
p_stream
,
"
missing destination and not in RTSP mode
"
);
free
(
p_sys
);
free
(
p_sys
);
return
VLC_EGENERIC
;
return
VLC_EGENERIC
;
}
}
...
...
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