Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
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-gpu
Commits
175310ff
Commit
175310ff
authored
Jun 12, 2008
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
live: add --rtsp-mcast to force multicast
parent
64a03d2c
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
6 deletions
+16
-6
modules/demux/live555.cpp
modules/demux/live555.cpp
+16
-6
No files found.
modules/demux/live555.cpp
View file @
175310ff
...
...
@@ -110,6 +110,9 @@ vlc_module_begin();
add_integer
(
"rtp-client-port"
,
-
1
,
NULL
,
N_
(
"Client port"
),
N_
(
"Port to use for the RTP source of the session"
),
true
);
add_bool
(
"rtsp-mcast"
,
false
,
NULL
,
N_
(
"Force multicast RTP via RTSP"
),
N_
(
"Force multicast RTP via RTSP"
),
true
);
add_bool
(
"rtsp-http"
,
0
,
NULL
,
N_
(
"Tunnel RTSP and RTP over HTTP"
),
N_
(
"Tunnel RTSP and RTP over HTTP"
),
true
);
...
...
@@ -196,8 +199,9 @@ struct demux_sys_t
timeout_thread_t
*
p_timeout
;
/* the actual thread that makes sure we don't timeout */
/* */
bool
b_multicast
;
/* true if one of the tracks is multicasted */
bool
b_no_data
;
/* true if we never receive any data */
bool
b_force_mcast
;
bool
b_multicast
;
/* if one of the tracks is multicasted */
bool
b_no_data
;
/* if we never received any data */
int
i_no_data_ti
;
/* consecutive number of TaskInterrupt */
char
event
;
...
...
@@ -279,6 +283,7 @@ static int Open ( vlc_object_t *p_this )
p_sys
->
b_multicast
=
false
;
p_sys
->
b_real
=
false
;
p_sys
->
psz_path
=
strdup
(
p_demux
->
psz_path
);
p_sys
->
b_force_mcast
=
var_CreateGetBool
(
p_demux
,
"rtsp-mcast"
);
/* parse URL for rtsp://[user:[passwd]@]serverip:port/options */
vlc_UrlParse
(
&
p_sys
->
url
,
p_sys
->
psz_path
,
0
);
...
...
@@ -720,13 +725,18 @@ static int SessionsSetup( demux_t *p_demux )
/* Issue the SETUP */
if
(
p_sys
->
rtsp
)
{
if
(
!
(
p_sys
->
rtsp
->
setupMediaSubsession
(
*
sub
,
False
,
b_rtsp_tcp
?
True
:
False
)
)
)
bool
tcp
=
b_rtsp_tcp
;
bool
mcast
=
p_sys
->
b_force_mcast
;
if
(
!
p_sys
->
rtsp
->
setupMediaSubsession
(
*
sub
,
False
,
tcp
?
True
:
False
,
(
mcast
&&
!
tcp
)
?
True
:
False
)
)
{
tcp
=
!
tcp
;
/* if we get an unsupported transport error, toggle TCP use and try again */
if
(
!
strstr
(
p_sys
->
env
->
getResultMsg
(),
"461 Unsupported Transport"
)
||
!
(
p_sys
->
rtsp
->
setupMediaSubsession
(
*
sub
,
False
,
b_rtsp_tcp
?
False
:
True
)
)
)
||
!
p_sys
->
rtsp
->
setupMediaSubsession
(
*
sub
,
False
,
tcp
?
False
:
True
,
(
mcast
&&
!
tcp
)
?
True
:
False
)
)
{
msg_Err
(
p_demux
,
"SETUP of'%s/%s' failed %s"
,
sub
->
mediumName
(),
sub
->
codecName
(),
p_sys
->
env
->
getResultMsg
()
);
...
...
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