Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
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-gpu
Commits
6cdb3e28
Commit
6cdb3e28
authored
Sep 14, 2006
by
Christophe Mutricy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use var_ instead of config_ (closes #740)
parent
3ef49160
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
3 deletions
+8
-3
modules/control/http/http.c
modules/control/http/http.c
+8
-3
No files found.
modules/control/http/http.c
View file @
6cdb3e28
...
@@ -126,7 +126,12 @@ static int Open( vlc_object_t *p_this )
...
@@ -126,7 +126,12 @@ static int Open( vlc_object_t *p_this )
char
*
psz_src
;
char
*
psz_src
;
char
psz_tmp
[
10
];
char
psz_tmp
[
10
];
var_Create
(
p_intf
->
p_libvlc
,
"http-host"
,
VLC_VAR_STRING
);
psz_address
=
var_GetString
(
p_intf
->
p_libvlc
,
"http-host"
);
if
(
!
psz_address
||
!*
psz_address
)
{
psz_address
=
config_GetPsz
(
p_intf
,
"http-host"
);
psz_address
=
config_GetPsz
(
p_intf
,
"http-host"
);
}
if
(
psz_address
!=
NULL
)
if
(
psz_address
!=
NULL
)
{
{
char
*
psz_parser
=
strchr
(
psz_address
,
':'
);
char
*
psz_parser
=
strchr
(
psz_address
,
':'
);
...
@@ -259,8 +264,8 @@ static int Open( vlc_object_t *p_this )
...
@@ -259,8 +264,8 @@ static int Open( vlc_object_t *p_this )
}
}
/* Ugly hack to allow to run several HTTP servers on different ports. */
/* Ugly hack to allow to run several HTTP servers on different ports. */
sprintf
(
psz_tmp
,
"
:%d"
,
i_port
+
1
);
sprintf
(
psz_tmp
,
"
%s:%d"
,
psz_address
,
i_port
+
1
);
config_PutPsz
(
p_intf
,
"http-host"
,
psz_tmp
);
var_SetString
(
p_intf
->
p_libvlc
,
"http-host"
,
psz_tmp
);
msg_Dbg
(
p_intf
,
"base %s:%d"
,
psz_address
,
i_port
);
msg_Dbg
(
p_intf
,
"base %s:%d"
,
psz_address
,
i_port
);
...
...
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