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
c0d37c7c
Commit
c0d37c7c
authored
Oct 22, 2008
by
Sebastien Escudier
Committed by
Rémi Denis-Courmont
Oct 22, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use live555 timeout option and reduce waiting time
Signed-off-by:
Rémi Denis-Courmont
<
rdenis@simphalempin.com
>
parent
7bd6af33
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
7 deletions
+19
-7
modules/demux/live555.cpp
modules/demux/live555.cpp
+19
-7
No files found.
modules/demux/live555.cpp
View file @
c0d37c7c
...
...
@@ -481,7 +481,7 @@ static int Connect( demux_t *p_demux )
char
*
p_sdp
=
NULL
;
int
i_http_port
=
0
;
int
i_ret
=
VLC_SUCCESS
;
int
i_lefttries
;
int
timeout
;
if
(
p_sys
->
url
.
i_port
==
0
)
p_sys
->
url
.
i_port
=
554
;
if
(
p_sys
->
url
.
psz_username
||
p_sys
->
url
.
psz_password
)
...
...
@@ -504,9 +504,7 @@ static int Connect( demux_t *p_demux )
psz_pwd
=
var_CreateGetString
(
p_demux
,
"rtsp-pwd"
);
}
i_lefttries
=
3
;
createnew:
i_lefttries
--
;
if
(
!
vlc_object_alive
(
p_demux
)
||
p_demux
->
b_error
)
{
free
(
psz_user
);
...
...
@@ -546,14 +544,30 @@ describe:
authenticator
.
setUsernameAndPassword
(
(
const
char
*
)
psz_user
,
(
const
char
*
)
psz_pwd
);
timeout
=
var_CreateGetInteger
(
p_demux
,
"ipv4-timeout"
);
timeout
/=
1000
;
#if LIVEMEDIA_LIBRARY_VERSION_INT >= 1223337600
psz_options
=
p_sys
->
rtsp
->
sendOptionsCmd
(
psz_url
,
psz_user
,
psz_pwd
,
&
authenticator
,
timeout
);
#else
psz_options
=
p_sys
->
rtsp
->
sendOptionsCmd
(
psz_url
,
psz_user
,
psz_pwd
,
&
authenticator
);
#endif
if
(
psz_options
)
{
p_sys
->
b_get_param
=
strstr
(
psz_options
,
"GET_PARAMETER"
)
?
true
:
false
;
#if LIVEMEDIA_LIBRARY_VERSION_INT >= 1223337600
p_sdp
=
p_sys
->
rtsp
->
describeURL
(
psz_url
,
&
authenticator
,
var_GetBool
(
p_demux
,
"rtsp-kasenna"
),
timeout
);
#else
p_sdp
=
p_sys
->
rtsp
->
describeURL
(
psz_url
,
&
authenticator
,
var_GetBool
(
p_demux
,
"rtsp-kasenna"
)
);
#endif
}
delete
[]
psz_options
;
p_sdp
=
p_sys
->
rtsp
->
describeURL
(
psz_url
,
&
authenticator
,
var_GetBool
(
p_demux
,
"rtsp-kasenna"
)
);
if
(
p_sdp
==
NULL
)
{
/* failure occurred */
...
...
@@ -616,8 +630,6 @@ describe:
msg_Dbg
(
p_demux
,
"connection timeout, retrying"
);
if
(
p_sys
->
rtsp
)
RTSPClient
::
close
(
p_sys
->
rtsp
);
p_sys
->
rtsp
=
NULL
;
if
(
i_lefttries
>
0
)
goto
createnew
;
}
i_ret
=
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