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
34c9ee45
Commit
34c9ee45
authored
Nov 11, 2007
by
Jean-Baptiste Kempf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Store the time and length in int, since we use only the seconds count.
parent
0da94177
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
modules/gui/qt4/input_manager.cpp
modules/gui/qt4/input_manager.cpp
+2
-1
No files found.
modules/gui/qt4/input_manager.cpp
View file @
34c9ee45
...
@@ -99,13 +99,14 @@ void InputManager::update()
...
@@ -99,13 +99,14 @@ void InputManager::update()
}
}
/* Update position */
/* Update position */
mtime_t
i_length
,
i_time
;
int
i_length
,
i_time
;
/* Int is enough, since we store seconds */
float
f_pos
;
float
f_pos
;
i_length
=
var_GetTime
(
p_input
,
"length"
)
/
1000000
;
i_length
=
var_GetTime
(
p_input
,
"length"
)
/
1000000
;
i_time
=
var_GetTime
(
p_input
,
"time"
)
/
1000000
;
i_time
=
var_GetTime
(
p_input
,
"time"
)
/
1000000
;
f_pos
=
var_GetFloat
(
p_input
,
"position"
);
f_pos
=
var_GetFloat
(
p_input
,
"position"
);
emit
positionUpdated
(
f_pos
,
i_time
,
i_length
);
emit
positionUpdated
(
f_pos
,
i_time
,
i_length
);
/* Update Rate */
int
i_new_rate
=
var_GetInteger
(
p_input
,
"rate"
);
int
i_new_rate
=
var_GetInteger
(
p_input
,
"rate"
);
if
(
i_new_rate
!=
i_rate
)
if
(
i_new_rate
!=
i_rate
)
{
{
...
...
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