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
d58fbdad
Commit
d58fbdad
authored
Apr 17, 2008
by
Jean-Paul Saman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Rework to use asprintf() in live555 demux
parent
afb9691c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
9 deletions
+10
-9
modules/demux/live555.cpp
modules/demux/live555.cpp
+10
-9
No files found.
modules/demux/live555.cpp
View file @
d58fbdad
...
...
@@ -457,8 +457,7 @@ static int Connect( demux_t *p_demux )
{
demux_sys_t
*
p_sys
=
p_demux
->
p_sys
;
Authenticator
authenticator
;
bool
b_firstpass
=
true
;
bool
b_firstpass
=
true
;
char
*
psz_user
=
NULL
;
char
*
psz_pwd
=
NULL
;
char
*
psz_url
=
NULL
;
...
...
@@ -466,28 +465,30 @@ static int Connect( demux_t *p_demux )
char
*
p_sdp
=
NULL
;
int
i_http_port
=
0
;
int
i_ret
=
VLC_SUCCESS
;
psz_url
=
(
char
*
)
malloc
(
strlen
(
p_sys
->
psz_path
)
+
8
);
if
(
!
psz_url
)
return
VLC_ENOMEM
;
int
i_lefttries
;
if
(
p_sys
->
url
.
i_port
==
0
)
p_sys
->
url
.
i_port
=
554
;
if
(
p_sys
->
url
.
psz_username
||
p_sys
->
url
.
psz_password
)
{
sprintf
(
psz_url
,
"rtsp://%s:%d%s"
,
p_sys
->
url
.
psz_host
,
p_sys
->
url
.
i_port
,
p_sys
->
url
.
psz_path
);
int
err
;
err
=
asprintf
(
&
psz_url
,
"rtsp://%s:%d%s"
,
p_sys
->
url
.
psz_host
,
p_sys
->
url
.
i_port
,
p_sys
->
url
.
psz_path
);
if
(
err
==
-
1
)
return
VLC_ENOMEM
;
psz_user
=
strdup
(
p_sys
->
url
.
psz_username
);
psz_pwd
=
strdup
(
p_sys
->
url
.
psz_password
);
}
else
{
sprintf
(
psz_url
,
"rtsp://%s"
,
p_sys
->
psz_path
);
int
err
;
err
=
asprintf
(
&
psz_url
,
"rtsp://%s"
,
p_sys
->
psz_path
);
if
(
err
==
-
1
)
return
VLC_ENOMEM
;
psz_user
=
var_CreateGetString
(
p_demux
,
"rtsp-user"
);
psz_pwd
=
var_CreateGetString
(
p_demux
,
"rtsp-pwd"
);
}
i
nt
i
_lefttries
=
3
;
i_lefttries
=
3
;
createnew:
i_lefttries
--
;
if
(
p_demux
->
b_die
||
p_demux
->
b_error
)
...
...
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