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
9483c8c4
Commit
9483c8c4
authored
Aug 13, 2014
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
input: avoid implicit double upconversion
parent
42413c15
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
src/input/input.c
src/input/input.c
+5
-4
No files found.
src/input/input.c
View file @
9483c8c4
...
@@ -34,6 +34,7 @@
...
@@ -34,6 +34,7 @@
#include <limits.h>
#include <limits.h>
#include <assert.h>
#include <assert.h>
#include <errno.h>
#include <errno.h>
#include <math.h>
#include <sys/stat.h>
#include <sys/stat.h>
#include "input_internal.h"
#include "input_internal.h"
...
@@ -631,7 +632,7 @@ static int MainLoopTryRepeat( input_thread_t *p_input, mtime_t *pi_start_mdate )
...
@@ -631,7 +632,7 @@ static int MainLoopTryRepeat( input_thread_t *p_input, mtime_t *pi_start_mdate )
}
}
else
else
{
{
val
.
f_float
=
0
.
0
;
val
.
f_float
=
0
.
f
;
input_ControlPush
(
p_input
,
INPUT_CONTROL_SET_POSITION
,
&
val
);
input_ControlPush
(
p_input
,
INPUT_CONTROL_SET_POSITION
,
&
val
);
}
}
...
@@ -921,11 +922,11 @@ static void StartTitle( input_thread_t * p_input )
...
@@ -921,11 +922,11 @@ static void StartTitle( input_thread_t * p_input )
input_ControlPush
(
p_input
,
INPUT_CONTROL_SET_SEEKPOINT
,
&
val
);
input_ControlPush
(
p_input
,
INPUT_CONTROL_SET_SEEKPOINT
,
&
val
);
/* Start/stop/run time */
/* Start/stop/run time */
p_input
->
p
->
i_start
=
(
int64_t
)(
1000000
.
0
p_input
->
p
->
i_start
=
llroundf
(
1000000
.
f
*
var_GetFloat
(
p_input
,
"start-time"
));
*
var_GetFloat
(
p_input
,
"start-time"
));
p_input
->
p
->
i_stop
=
(
int64_t
)(
1000000
.
0
p_input
->
p
->
i_stop
=
llroundf
(
1000000
.
f
*
var_GetFloat
(
p_input
,
"stop-time"
));
*
var_GetFloat
(
p_input
,
"stop-time"
));
p_input
->
p
->
i_run
=
(
int64_t
)(
1000000
.
0
p_input
->
p
->
i_run
=
llroundf
(
1000000
.
f
*
var_GetFloat
(
p_input
,
"run-time"
));
*
var_GetFloat
(
p_input
,
"run-time"
));
if
(
p_input
->
p
->
i_run
<
0
)
if
(
p_input
->
p
->
i_run
<
0
)
{
{
...
...
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