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
df8f23fc
Commit
df8f23fc
authored
Mar 22, 2004
by
Simon Latapie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* http.c: vlm_error
parent
8e2f50d2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
1 deletion
+18
-1
modules/control/http.c
modules/control/http.c
+18
-1
No files found.
modules/control/http.c
View file @
df8f23fc
...
...
@@ -1958,6 +1958,7 @@ static void MacroDo( httpd_file_sys_t *p_args,
char
name
[
512
];
char
*
psz
=
malloc
(
strlen
(
p_request
)
+
1000
);
char
*
p
=
psz
;
char
*
vlm_error
;
int
i
;
if
(
p_intf
->
p_sys
->
p_vlm
==
NULL
)
...
...
@@ -1979,6 +1980,7 @@ static void MacroDo( httpd_file_sys_t *p_args,
{
char
val
[
512
];
uri_extract_value
(
p_request
,
vlm_properties
[
i
],
val
,
512
);
uri_decode_url_encoded
(
val
);
if
(
strlen
(
val
)
>
0
&&
i
>=
4
)
{
p
+=
sprintf
(
p
,
" %s %s"
,
vlm_properties
[
i
],
val
);
...
...
@@ -1989,8 +1991,23 @@ static void MacroDo( httpd_file_sys_t *p_args,
}
}
vlm_ExecuteCommand
(
p_intf
->
p_sys
->
p_vlm
,
psz
,
&
vlm_answer
);
/* FIXME do a vlm_answer -> var stack conversion */
if
(
vlm_answer
->
psz_value
==
NULL
)
/* there is no error */
{
vlm_error
=
strdup
(
""
);
}
else
{
vlm_error
=
malloc
(
strlen
(
vlm_answer
->
psz_name
)
+
strlen
(
vlm_answer
->
psz_value
)
+
strlen
(
" : "
)
+
1
);
sprintf
(
vlm_error
,
"%s : %s"
,
vlm_answer
->
psz_name
,
vlm_answer
->
psz_value
);
}
mvar_AppendNewVar
(
p_args
->
vars
,
"vlm_error"
,
vlm_error
);
vlm_MessageDelete
(
vlm_answer
);
free
(
vlm_error
);
free
(
psz
);
break
;
}
...
...
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