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
8b9bc128
Commit
8b9bc128
authored
Dec 30, 2009
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
HTTP interface: kill config_Get
parent
5530c16d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
11 deletions
+11
-11
modules/control/http/http.c
modules/control/http/http.c
+11
-11
No files found.
modules/control/http/http.c
View file @
8b9bc128
...
...
@@ -140,8 +140,8 @@ static int Open( vlc_object_t *p_this )
p_sys
->
i_handlers
=
0
;
p_sys
->
pp_handlers
=
NULL
;
#if defined( HAVE_FORK ) || defined( WIN32 )
psz_src
=
config_GetPsz
(
p_intf
,
"http-handlers"
);
if
(
psz_src
!=
NULL
&&
*
psz_src
)
psz_src
=
var_InheritString
(
p_intf
,
"http-handlers"
);
if
(
psz_src
!=
NULL
)
{
char
*
p
=
psz_src
;
while
(
p
!=
NULL
)
...
...
@@ -175,19 +175,19 @@ static int Open( vlc_object_t *p_this )
TAB_APPEND
(
p_sys
->
i_handlers
,
p_sys
->
pp_handlers
,
p_handler
);
}
free
(
psz_src
);
}
free
(
psz_src
);
#endif
/* determine SSL configuration */
psz_cert
=
config_GetPsz
(
p_intf
,
"http-intf-cert"
);
psz_cert
=
var_InheritString
(
p_intf
,
"http-intf-cert"
);
if
(
psz_cert
!=
NULL
)
{
msg_Dbg
(
p_intf
,
"enabling TLS for HTTP interface (cert file: %s)"
,
psz_cert
);
psz_key
=
var_
GetNonEmpty
String
(
p_intf
,
"http-intf-key"
);
psz_ca
=
var_
GetNonEmpty
String
(
p_intf
,
"http-intf-ca"
);
psz_crl
=
var_
GetNonEmpty
String
(
p_intf
,
"http-intf-crl"
);
psz_key
=
var_
Inherit
String
(
p_intf
,
"http-intf-key"
);
psz_ca
=
var_
Inherit
String
(
p_intf
,
"http-intf-ca"
);
psz_crl
=
var_
Inherit
String
(
p_intf
,
"http-intf-crl"
);
if
(
i_port
<=
0
)
i_port
=
8443
;
...
...
@@ -229,8 +229,8 @@ static int Open( vlc_object_t *p_this )
p_sys
->
i_files
=
0
;
p_sys
->
pp_files
=
NULL
;
psz_src
=
config_GetPsz
(
p_intf
,
"http-src"
);
if
(
(
psz_src
==
NULL
)
||
(
*
psz_src
==
'\0'
)
)
psz_src
=
var_InheritString
(
p_intf
,
"http-src"
);
if
(
psz_src
==
NULL
)
{
char
*
data_path
=
config_GetDataDir
(
p_intf
);
if
(
asprintf
(
&
psz_src
,
"%s"
DIR_SEP
"http"
,
data_path
)
==
-
1
)
...
...
@@ -238,7 +238,7 @@ static int Open( vlc_object_t *p_this )
free
(
data_path
);
}
if
(
!
psz_src
||
*
psz_src
==
'\0'
)
if
(
psz_src
==
NULL
)
{
msg_Err
(
p_intf
,
"invalid web interface source directory"
);
goto
failed
;
...
...
@@ -260,7 +260,7 @@ static int Open( vlc_object_t *p_this )
free
(
psz_src
);
if
(
config_GetInt
(
p_intf
,
"http-album-art"
)
)
if
(
var_InheritInteger
(
p_intf
,
"http-album-art"
)
)
{
/* FIXME: we're leaking h */
httpd_handler_sys_t
*
h
=
malloc
(
sizeof
(
httpd_handler_sys_t
)
);
...
...
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