Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
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
Commits
73906514
Commit
73906514
authored
Aug 13, 2014
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
input var: avoid implicit double upconversion
parent
e5266153
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
src/input/var.c
src/input/var.c
+5
-5
No files found.
src/input/var.c
View file @
73906514
...
@@ -592,17 +592,17 @@ static int PositionCallback( vlc_object_t *p_this, char const *psz_cmd,
...
@@ -592,17 +592,17 @@ static int PositionCallback( vlc_object_t *p_this, char const *psz_cmd,
if
(
!
strcmp
(
psz_cmd
,
"position-offset"
)
)
if
(
!
strcmp
(
psz_cmd
,
"position-offset"
)
)
{
{
float
f_position
=
var_GetFloat
(
p_input
,
"position"
)
+
newval
.
f_float
;
float
f_position
=
var_GetFloat
(
p_input
,
"position"
)
+
newval
.
f_float
;
if
(
f_position
<
0
.
0
)
if
(
f_position
<
0
.
f
)
f_position
=
0
.
0
;
f_position
=
0
.
f
;
else
if
(
f_position
>
1
.
0
)
else
if
(
f_position
>
1
.
f
)
f_position
=
1
.
0
;
f_position
=
1
.
f
;
var_SetFloat
(
p_this
,
"position"
,
f_position
);
var_SetFloat
(
p_this
,
"position"
,
f_position
);
}
}
else
else
{
{
/* Update "length" for better intf behavour */
/* Update "length" for better intf behavour */
const
mtime_t
i_length
=
var_GetTime
(
p_input
,
"length"
);
const
mtime_t
i_length
=
var_GetTime
(
p_input
,
"length"
);
if
(
i_length
>
0
&&
newval
.
f_float
>=
0
.
0
&&
newval
.
f_float
<=
1
.
0
)
if
(
i_length
>
0
&&
newval
.
f_float
>=
0
.
f
&&
newval
.
f_float
<=
1
.
f
)
{
{
vlc_value_t
val
;
vlc_value_t
val
;
...
...
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