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
a2001a3a
Commit
a2001a3a
authored
Mar 22, 2004
by
Laurent Aimar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* http.c: fixes about vlm.
parent
017996d9
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
29 additions
and
5 deletions
+29
-5
modules/control/http.c
modules/control/http.c
+29
-5
No files found.
modules/control/http.c
View file @
a2001a3a
...
@@ -1155,9 +1155,31 @@ static mvar_t *mvar_VlmSetNew( char *name, vlm_t *vlm )
...
@@ -1155,9 +1155,31 @@ static mvar_t *mvar_VlmSetNew( char *name, vlm_t *vlm )
set
=
mvar_New
(
name
,
"set"
);
set
=
mvar_New
(
name
,
"set"
);
mvar_AppendNewVar
(
set
,
"name"
,
el
->
psz_name
);
mvar_AppendNewVar
(
set
,
"name"
,
el
->
psz_name
);
fprintf
(
stderr
,
"#### name=%s
\n
"
,
el
->
psz_name
);
for
(
k
=
0
;
k
<
desc
->
i_child
;
k
++
)
for
(
k
=
0
;
k
<
desc
->
i_child
;
k
++
)
{
{
mvar_AppendNewVar
(
set
,
desc
->
child
[
k
]
->
psz_name
,
desc
->
child
[
k
]
->
psz_value
);
vlm_message_t
*
ch
=
desc
->
child
[
k
];
if
(
ch
->
i_child
>
0
)
{
int
c
;
mvar_t
*
n
=
mvar_New
(
ch
->
psz_name
,
"set"
);
fprintf
(
stderr
,
" child=%s [%d]
\n
"
,
ch
->
psz_name
,
ch
->
i_child
);
for
(
c
=
0
;
c
<
ch
->
i_child
;
c
++
)
{
mvar_t
*
in
=
mvar_New
(
ch
->
psz_name
,
ch
->
child
[
c
]
->
psz_name
);
mvar_AppendVar
(
n
,
in
);
fprintf
(
stderr
,
" sub=%s
\n
"
,
ch
->
child
[
c
]
->
psz_name
);
}
mvar_AppendVar
(
set
,
n
);
}
else
{
fprintf
(
stderr
,
" child=%s->%s
\n
"
,
ch
->
psz_name
,
ch
->
psz_value
);
mvar_AppendNewVar
(
set
,
ch
->
psz_name
,
ch
->
psz_value
);
}
}
}
vlm_MessageDelete
(
inf
);
vlm_MessageDelete
(
inf
);
...
@@ -1927,8 +1949,10 @@ static void MacroDo( httpd_file_sys_t *p_args,
...
@@ -1927,8 +1949,10 @@ static void MacroDo( httpd_file_sys_t *p_args,
{
{
static
const
char
*
vlm_properties
[
11
]
=
static
const
char
*
vlm_properties
[
11
]
=
{
{
"input"
,
"output"
,
"option"
,
"enabled"
,
"disabled"
,
/* no args */
"loop"
,
"unloop"
,
"append"
,
"date"
,
"period"
,
"repeat"
,
"enabled"
,
"disabled"
,
"loop"
,
"unloop"
,
/* args required */
"input"
,
"output"
,
"option"
,
"append"
,
"date"
,
"period"
,
"repeat"
,
};
};
vlm_message_t
*
vlm_answer
;
vlm_message_t
*
vlm_answer
;
char
name
[
512
];
char
name
[
512
];
...
@@ -1955,11 +1979,11 @@ static void MacroDo( httpd_file_sys_t *p_args,
...
@@ -1955,11 +1979,11 @@ static void MacroDo( httpd_file_sys_t *p_args,
{
{
char
val
[
512
];
char
val
[
512
];
uri_extract_value
(
p_request
,
vlm_properties
[
i
],
val
,
512
);
uri_extract_value
(
p_request
,
vlm_properties
[
i
],
val
,
512
);
if
(
strlen
(
val
)
>
0
)
if
(
strlen
(
val
)
>
0
&&
i
>=
4
)
{
{
p
+=
sprintf
(
p
,
" %s %s"
,
vlm_properties
[
i
],
val
);
p
+=
sprintf
(
p
,
" %s %s"
,
vlm_properties
[
i
],
val
);
}
}
else
if
(
uri_test_param
(
p_request
,
vlm_properties
[
i
]
)
)
else
if
(
uri_test_param
(
p_request
,
vlm_properties
[
i
]
)
&&
i
<
4
)
{
{
p
+=
sprintf
(
p
,
" %s"
,
vlm_properties
[
i
]
);
p
+=
sprintf
(
p
,
" %s"
,
vlm_properties
[
i
]
);
}
}
...
...
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