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
5a745b1a
Commit
5a745b1a
authored
Jul 23, 2009
by
Rémi Duraffort
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
http access_out: factorize.
parent
b5a83c99
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
21 deletions
+6
-21
modules/access_output/http.c
modules/access_output/http.c
+6
-21
No files found.
modules/access_output/http.c
View file @
5a745b1a
...
...
@@ -165,12 +165,11 @@ static int Open( vlc_object_t *p_this )
char
*
psz_bind_addr
;
int
i_bind_port
;
char
*
psz_file_name
;
char
*
psz_user
=
NULL
;
char
*
psz_pwd
=
NULL
;
char
*
psz_mime
=
NULL
;
char
*
psz_user
;
char
*
psz_pwd
;
char
*
psz_mime
;
char
*
psz_cert
=
NULL
,
*
psz_key
=
NULL
,
*
psz_ca
=
NULL
,
*
psz_crl
=
NULL
;
vlc_value_t
val
;
if
(
!
(
p_sys
=
p_access
->
p_sys
=
malloc
(
sizeof
(
sout_access_out_sys_t
)
)
)
)
...
...
@@ -251,31 +250,17 @@ static int Open( vlc_object_t *p_this )
}
free
(
psz_parser
);
psz_user
=
var_GetNonEmptyString
(
p_access
,
SOUT_CFG_PREFIX
"user"
);
psz_pwd
=
var_GetNonEmptyString
(
p_access
,
SOUT_CFG_PREFIX
"pwd"
);
if
(
p_access
->
psz_access
&&
!
strcmp
(
p_access
->
psz_access
,
"mmsh"
)
)
{
psz_mime
=
strdup
(
"video/x-ms-asf-stream"
);
}
else
{
var_Get
(
p_access
,
SOUT_CFG_PREFIX
"mime"
,
&
val
);
if
(
*
val
.
psz_string
)
psz_mime
=
val
.
psz_string
;
else
free
(
val
.
psz_string
);
psz_mime
=
var_GetNonEmptyString
(
p_access
,
SOUT_CFG_PREFIX
"mime"
);
}
var_Get
(
p_access
,
SOUT_CFG_PREFIX
"user"
,
&
val
);
if
(
*
val
.
psz_string
)
psz_user
=
val
.
psz_string
;
else
free
(
val
.
psz_string
);
var_Get
(
p_access
,
SOUT_CFG_PREFIX
"pwd"
,
&
val
);
if
(
*
val
.
psz_string
)
psz_pwd
=
val
.
psz_string
;
else
free
(
val
.
psz_string
);
p_sys
->
p_httpd_stream
=
httpd_StreamNew
(
p_sys
->
p_httpd_host
,
psz_file_name
,
psz_mime
,
psz_user
,
psz_pwd
,
NULL
);
...
...
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