Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
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-2-2
Commits
f50f57ff
Commit
f50f57ff
authored
Aug 06, 2011
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use CLOCK_FREQ
parent
6daf1820
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
modules/gui/qt4/input_manager.cpp
modules/gui/qt4/input_manager.cpp
+4
-3
No files found.
modules/gui/qt4/input_manager.cpp
View file @
f50f57ff
...
...
@@ -24,6 +24,7 @@
*****************************************************************************/
#define __STDC_FORMAT_MACROS 1
#define __STDC_CONSTANT_MACROS 1
#ifdef HAVE_CONFIG_H
# include "config.h"
...
...
@@ -407,7 +408,7 @@ void InputManager::UpdatePosition()
int
i_length
;
int64_t
i_time
;
float
f_pos
;
i_length
=
var_GetTime
(
p_input
,
"length"
)
/
1000000
;
i_length
=
var_GetTime
(
p_input
,
"length"
)
/
CLOCK_FREQ
;
i_time
=
var_GetTime
(
p_input
,
"time"
);
f_pos
=
var_GetFloat
(
p_input
,
"position"
);
emit
positionUpdated
(
f_pos
,
i_time
,
i_length
);
...
...
@@ -882,7 +883,7 @@ void InputManager::jumpFwd()
int
i_interval
=
var_InheritInteger
(
p_input
,
"short-jump-size"
);
if
(
i_interval
>
0
)
{
mtime_t
val
=
(
mtime_t
)(
i_interval
)
*
1000000L
;
mtime_t
val
=
CLOCK_FREQ
*
i_interval
;
var_SetTime
(
p_input
,
"time-offset"
,
val
);
}
}
...
...
@@ -892,7 +893,7 @@ void InputManager::jumpBwd()
int
i_interval
=
var_InheritInteger
(
p_input
,
"short-jump-size"
);
if
(
i_interval
>
0
)
{
mtime_t
val
=
-
1
*
(
mtime_t
)(
i_interval
)
*
1000000L
;
mtime_t
val
=
-
CLOCK_FREQ
*
i_interval
;
var_SetTime
(
p_input
,
"time-offset"
,
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