Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-1.1
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-1.1
Commits
696d5744
Commit
696d5744
authored
May 27, 2008
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix HTTP interface with --disable-vlm
parent
1809597b
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
10 additions
and
7 deletions
+10
-7
modules/control/http/http.c
modules/control/http/http.c
+2
-3
modules/control/http/macro.c
modules/control/http/macro.c
+4
-1
modules/control/http/mvar.c
modules/control/http/mvar.c
+2
-3
modules/control/http/rpn.c
modules/control/http/rpn.c
+2
-0
No files found.
modules/control/http/http.c
View file @
696d5744
...
...
@@ -338,13 +338,12 @@ static void Close ( vlc_object_t *p_this )
{
intf_thread_t
*
p_intf
=
(
intf_thread_t
*
)
p_this
;
intf_sys_t
*
p_sys
=
p_intf
->
p_sys
;
int
i
;
#ifdef ENABLE_VLM
if
(
p_sys
->
p_vlm
)
{
vlm_Delete
(
p_sys
->
p_vlm
);
}
#endif
for
(
i
=
0
;
i
<
p_sys
->
i_files
;
i
++
)
{
if
(
p_sys
->
pp_files
[
i
]
->
b_handler
)
...
...
modules/control/http/macro.c
View file @
696d5744
...
...
@@ -530,6 +530,7 @@ static void MacroDo( httpd_file_sys_t *p_args,
vlc_object_kill
(
p_intf
->
p_libvlc
);
break
;
}
#ifdef ENABLE_VLM
/* vlm */
case
MVLC_VLM_NEW
:
case
MVLC_VLM_SETUP
:
...
...
@@ -679,7 +680,7 @@ static void MacroDo( httpd_file_sys_t *p_args,
vlm_MessageDelete
(
vlm_answer
);
break
;
}
#endif
/* ENABLE_VLM */
default:
if
(
*
control
)
{
...
...
@@ -1043,12 +1044,14 @@ void Execute( httpd_file_sys_t *p_args,
p_intf
->
p_sys
->
p_input
,
m
.
param2
);
}
#ifdef ENABLE_VLM
else
if
(
!
strcmp
(
m
.
param2
,
"vlm"
)
)
{
if
(
p_intf
->
p_sys
->
p_vlm
==
NULL
)
p_intf
->
p_sys
->
p_vlm
=
vlm_New
(
p_intf
);
index
=
mvar_VlmSetNew
(
m
.
param1
,
p_intf
->
p_sys
->
p_vlm
);
}
#endif
#if 0
else if( !strcmp( m.param2, "hosts" ) )
{
...
...
modules/control/http/mvar.c
View file @
696d5744
...
...
@@ -668,15 +668,14 @@ static void mvar_VlmSetNewLoop( char *name, vlm_t *vlm, mvar_t *s,
mvar_t
*
mvar_VlmSetNew
(
char
*
name
,
vlm_t
*
vlm
)
{
mvar_t
*
s
=
mvar_New
(
name
,
"set"
);
#ifdef ENABLE_VLM
vlm_message_t
*
msg
;
int
i
;
if
(
vlm
==
NULL
)
return
s
;
if
(
vlm_ExecuteCommand
(
vlm
,
"show"
,
&
msg
)
)
{
return
s
;
}
for
(
i
=
0
;
i
<
msg
->
i_child
;
i
++
)
{
...
...
@@ -702,6 +701,6 @@ mvar_t *mvar_VlmSetNew( char *name, vlm_t *vlm )
}
}
vlm_MessageDelete
(
msg
);
#endif
/* ENABLE_VLM */
return
s
;
}
modules/control/http/rpn.c
View file @
696d5744
...
...
@@ -1006,6 +1006,7 @@ void EvaluateRPN( intf_thread_t *p_intf, mvar_t *vars,
free
(
psz_meta
);
free
(
psz_val
);
}
#ifdef ENABLE_VLM
else
if
(
!
strcmp
(
s
,
"vlm_command"
)
||
!
strcmp
(
s
,
"vlm_cmd"
)
)
{
char
*
psz_elt
;
...
...
@@ -1056,6 +1057,7 @@ void EvaluateRPN( intf_thread_t *p_intf, mvar_t *vars,
free
(
psz_cmd
);
free
(
psz_error
);
}
#endif
/* ENABLE_VLM */
else
if
(
!
strcmp
(
s
,
"snapshot"
)
)
{
if
(
p_sys
->
p_input
)
...
...
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