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
0aa088cd
Commit
0aa088cd
authored
May 09, 2010
by
Pierre Ynard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
live555: recreate URL only to strip username/password
This restores the original logic from
c77ee763
parent
bc975106
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
13 deletions
+10
-13
modules/demux/live555.cpp
modules/demux/live555.cpp
+10
-13
No files found.
modules/demux/live555.cpp
View file @
0aa088cd
...
...
@@ -477,29 +477,26 @@ static int Connect( demux_t *p_demux )
int
i_http_port
=
0
;
int
i_ret
=
VLC_SUCCESS
;
/* Create the url using the port number if available */
if
(
p_sys
->
url
.
i_port
==
0
)
{
p_sys
->
url
.
i_port
=
554
;
if
(
asprintf
(
&
psz_url
,
"rtsp://%s"
,
p_sys
->
psz_path
)
==
-
1
)
return
VLC_ENOMEM
;
}
else
/* Get the user name and password */
if
(
p_sys
->
url
.
psz_username
||
p_sys
->
url
.
psz_password
)
{
if
(
asprintf
(
&
psz_url
,
"rtsp://%s:%d%s"
,
p_sys
->
url
.
psz_host
,
/* Create the URL by stripping away the username/password part */
if
(
p_sys
->
url
.
i_port
==
0
)
p_sys
->
url
.
i_port
=
554
;
if
(
asprintf
(
&
psz_url
,
"rtsp://%s:%d%s"
,
strempty
(
p_sys
->
url
.
psz_host
),
p_sys
->
url
.
i_port
,
strempty
(
p_sys
->
url
.
psz_path
)
)
==
-
1
)
return
VLC_ENOMEM
;
}
/* Get the user name and password */
if
(
p_sys
->
url
.
psz_username
||
p_sys
->
url
.
psz_password
)
{
psz_user
=
strdup
(
strempty
(
p_sys
->
url
.
psz_username
)
);
psz_pwd
=
strdup
(
strempty
(
p_sys
->
url
.
psz_password
)
);
}
else
{
if
(
asprintf
(
&
psz_url
,
"rtsp://%s"
,
p_sys
->
psz_path
)
==
-
1
)
return
VLC_ENOMEM
;
psz_user
=
var_CreateGetString
(
p_demux
,
"rtsp-user"
);
psz_pwd
=
var_CreateGetString
(
p_demux
,
"rtsp-pwd"
);
}
...
...
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