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
4413d750
Commit
4413d750
authored
Mar 18, 2006
by
Clément Stenac
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Don't use %f in HTTP interface (Closes:#584)
parent
e68d9e1a
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
4 deletions
+11
-4
modules/control/http/macro.c
modules/control/http/macro.c
+4
-1
modules/control/http/rpn.c
modules/control/http/rpn.c
+7
-3
No files found.
modules/control/http/macro.c
View file @
4413d750
...
@@ -687,6 +687,7 @@ void E_(MacroDo)( httpd_file_sys_t *p_args,
...
@@ -687,6 +687,7 @@ void E_(MacroDo)( httpd_file_sys_t *p_args,
int
i
;
int
i
;
float
f
;
float
f
;
char
*
psz
;
char
*
psz
;
lldiv_t
div
;
if
(
*
m
->
param1
==
'\0'
)
if
(
*
m
->
param1
==
'\0'
)
{
{
...
@@ -701,7 +702,9 @@ void E_(MacroDo)( httpd_file_sys_t *p_args,
...
@@ -701,7 +702,9 @@ void E_(MacroDo)( httpd_file_sys_t *p_args,
break
;
break
;
case
MVLC_FLOAT
:
case
MVLC_FLOAT
:
f
=
config_GetFloat
(
p_intf
,
m
->
param1
);
f
=
config_GetFloat
(
p_intf
,
m
->
param1
);
sprintf
(
value
,
"%f"
,
f
);
div
=
lldiv
(
f
*
1000000
,
1000000
);
sprintf
(
value
,
I64Fd
".%06u"
,
div
.
quot
,
(
unsigned
int
)
div
.
rem
);
break
;
break
;
case
MVLC_STRING
:
case
MVLC_STRING
:
psz
=
config_GetPsz
(
p_intf
,
m
->
param1
);
psz
=
config_GetPsz
(
p_intf
,
m
->
param1
);
...
...
modules/control/http/rpn.c
View file @
4413d750
...
@@ -694,7 +694,9 @@ void E_(EvaluateRPN)( intf_thread_t *p_intf, mvar_t *vars,
...
@@ -694,7 +694,9 @@ void E_(EvaluateRPN)( intf_thread_t *p_intf, mvar_t *vars,
case
VLC_VAR_FLOAT
:
case
VLC_VAR_FLOAT
:
{
{
char
psz_value
[
20
];
char
psz_value
[
20
];
snprintf
(
psz_value
,
sizeof
(
psz_value
),
"%f"
,
val
.
f_float
);
lldiv_t
value
=
lldiv
(
val
.
f_float
*
1000000
,
1000000
);
snprintf
(
psz_value
,
sizeof
(
psz_value
),
I64Fd
".%06u"
,
value
.
quot
,
(
unsigned
int
)
value
.
rem
);
E_
(
SSPush
)(
st
,
psz_value
);
E_
(
SSPush
)(
st
,
psz_value
);
break
;
break
;
}
}
...
@@ -788,8 +790,10 @@ void E_(EvaluateRPN)( intf_thread_t *p_intf, mvar_t *vars,
...
@@ -788,8 +790,10 @@ void E_(EvaluateRPN)( intf_thread_t *p_intf, mvar_t *vars,
case
VLC_VAR_FLOAT
:
case
VLC_VAR_FLOAT
:
{
{
char
psz_string
[
20
];
char
psz_string
[
20
];
snprintf
(
psz_string
,
sizeof
(
psz_string
),
"%f"
,
lldiv_t
value
=
lldiv
(
config_GetFloat
(
p_intf
,
psz_variable
)
config_GetFloat
(
p_intf
,
psz_variable
)
);
*
1000000
,
1000000
);
snprintf
(
psz_string
,
sizeof
(
psz_string
),
I64Fd
".%06u"
,
value
.
quot
,
(
unsigned
int
)
value
.
rem
);
E_
(
SSPush
)(
st
,
psz_string
);
E_
(
SSPush
)(
st
,
psz_string
);
break
;
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