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
6511df53
Commit
6511df53
authored
Apr 15, 2009
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of git@git.videolan.org:vlc
parents
665ba714
e5030121
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
7 deletions
+18
-7
modules/demux/live555.cpp
modules/demux/live555.cpp
+17
-6
src/misc/threads.c
src/misc/threads.c
+1
-1
No files found.
modules/demux/live555.cpp
View file @
6511df53
...
...
@@ -479,7 +479,6 @@ static int Connect( demux_t *p_demux )
char
*
p_sdp
=
NULL
;
int
i_http_port
=
0
;
int
i_ret
=
VLC_SUCCESS
;
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
)
...
...
@@ -542,12 +541,16 @@ describe:
authenticator
.
setUsernameAndPassword
(
(
const
char
*
)
psz_user
,
(
const
char
*
)
psz_pwd
);
timeout
=
var_CreateGetInteger
(
p_demux
,
"ipv4-timeout"
);
timeout
/=
1000
;
#if defined(WIN32)
# warning "Disabled live555 timeout because of buggy library"
const
int
i_timeout
=
0
;
#else
const
int
i_timeout
=
var_CreateGetInteger
(
p_demux
,
"ipv4-timeout"
)
/
1000
;
#endif
#if LIVEMEDIA_LIBRARY_VERSION_INT >= 1223337600
psz_options
=
p_sys
->
rtsp
->
sendOptionsCmd
(
psz_url
,
psz_user
,
psz_pwd
,
&
authenticator
,
timeout
);
&
authenticator
,
i_
timeout
);
#else
psz_options
=
p_sys
->
rtsp
->
sendOptionsCmd
(
psz_url
,
psz_user
,
psz_pwd
,
&
authenticator
);
...
...
@@ -557,7 +560,7 @@ describe:
// try again, with the realm set this time
#if LIVEMEDIA_LIBRARY_VERSION_INT >= 1223337600
psz_options
=
p_sys
->
rtsp
->
sendOptionsCmd
(
psz_url
,
psz_user
,
psz_pwd
,
&
authenticator
,
timeout
);
&
authenticator
,
i_
timeout
);
#else
psz_options
=
p_sys
->
rtsp
->
sendOptionsCmd
(
psz_url
,
psz_user
,
psz_pwd
,
&
authenticator
);
...
...
@@ -569,7 +572,7 @@ describe:
#if LIVEMEDIA_LIBRARY_VERSION_INT >= 1223337600
p_sdp
=
p_sys
->
rtsp
->
describeWithPassword
(
psz_url
,
(
const
char
*
)
psz_user
,
(
const
char
*
)
psz_pwd
,
var_GetBool
(
p_demux
,
"rtsp-kasenna"
),
timeout
);
var_GetBool
(
p_demux
,
"rtsp-kasenna"
),
i_
timeout
);
#else
p_sdp
=
p_sys
->
rtsp
->
describeWithPassword
(
psz_url
,
(
const
char
*
)
psz_user
,
(
const
char
*
)
psz_pwd
,
var_GetBool
(
p_demux
,
"rtsp-kasenna"
)
);
...
...
@@ -1028,7 +1031,13 @@ static int SessionsSetup( demux_t *p_demux )
/* Retrieve the duration if possible */
p_sys
->
i_npt_length
=
p_sys
->
ms
->
playEndTime
();
/* */
msg_Dbg
(
p_demux
,
"setup start: %f stop:%f"
,
p_sys
->
i_npt_start
,
p_sys
->
i_npt_length
);
/* */
p_sys
->
b_no_data
=
true
;
p_sys
->
i_no_data_ti
=
0
;
return
i_return
;
}
...
...
@@ -1476,6 +1485,8 @@ static int RollOverTcp( demux_t *p_demux )
p_sys
->
rtsp
=
NULL
;
p_sys
->
track
=
NULL
;
p_sys
->
i_track
=
0
;
p_sys
->
b_no_data
=
true
;
p_sys
->
i_no_data_ti
=
0
;
/* Reopen rtsp client */
if
(
(
i_return
=
Connect
(
p_demux
)
)
!=
VLC_SUCCESS
)
...
...
src/misc/threads.c
View file @
6511df53
...
...
@@ -700,7 +700,7 @@ int vlc_threadvar_set (vlc_threadvar_t key, void *value)
#if defined(LIBVLC_USE_PTHREAD)
return
pthread_setspecific
(
key
,
value
);
#elif defined( UNDER_CE ) || defined( WIN32 )
return
TlsSetValue
(
key
,
p_
value
)
?
ENOMEM
:
0
;
return
TlsSetValue
(
key
,
value
)
?
ENOMEM
:
0
;
#else
# error Unimplemented!
#endif
...
...
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