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
28480679
Commit
28480679
authored
Aug 10, 2005
by
Jean-Paul Saman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix regression in timing behaviour. A minute jump is ~1 min again.
parent
88bb86ec
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
8 deletions
+10
-8
modules/control/hotkeys.c
modules/control/hotkeys.c
+10
-8
No files found.
modules/control/hotkeys.c
View file @
28480679
...
...
@@ -26,6 +26,7 @@
* Preamble
*****************************************************************************/
#include <stdlib.h>
/* malloc(), free() */
#include <math.h>
#include <vlc/vlc.h>
#include <vlc/intf.h>
...
...
@@ -245,6 +246,7 @@ static void Run( intf_thread_t *p_intf )
{
i_action
=
p_hotkeys
[
i
].
i_action
;
i_times
=
p_hotkeys
[
i
].
i_times
;
/* times key pressed within max. delta time */
p_hotkeys
[
i
].
i_times
=
0
;
}
}
...
...
@@ -461,49 +463,49 @@ static void Run( intf_thread_t *p_intf )
}
else
if
(
i_action
==
ACTIONID_JUMP_BACKWARD_3SEC
&&
b_seekable
)
{
val
.
i_time
=
(
-
3000000
*
2
^
i_times
);
val
.
i_time
=
(
-
3000000
*
((
mtime_t
)
pow
(
2
,
i_times
))
);
var_Set
(
p_input
,
"time-offset"
,
val
);
DisplayPosition
(
p_intf
,
p_vout
,
p_input
);
}
else
if
(
i_action
==
ACTIONID_JUMP_FORWARD_3SEC
&&
b_seekable
)
{
val
.
i_time
=
(
3000000
*
2
^
i_times
);
val
.
i_time
=
(
3000000
*
((
mtime_t
)
pow
(
2
,
i_times
))
);
var_Set
(
p_input
,
"time-offset"
,
val
);
DisplayPosition
(
p_intf
,
p_vout
,
p_input
);
}
else
if
(
i_action
==
ACTIONID_JUMP_BACKWARD_10SEC
&&
b_seekable
)
{
val
.
i_time
=
(
-
10000000
*
2
^
i_times
);
val
.
i_time
=
(
-
10000000
*
((
mtime_t
)
pow
(
2
,
i_times
))
);
var_Set
(
p_input
,
"time-offset"
,
val
);
DisplayPosition
(
p_intf
,
p_vout
,
p_input
);
}
else
if
(
i_action
==
ACTIONID_JUMP_FORWARD_10SEC
&&
b_seekable
)
{
val
.
i_time
=
(
10000000
*
2
^
i_times
);
val
.
i_time
=
(
10000000
*
((
mtime_t
)
pow
(
2
,
i_times
))
);
var_Set
(
p_input
,
"time-offset"
,
val
);
DisplayPosition
(
p_intf
,
p_vout
,
p_input
);
}
else
if
(
i_action
==
ACTIONID_JUMP_BACKWARD_1MIN
&&
b_seekable
)
{
val
.
i_time
=
(
-
60000000
*
2
^
i_times
);
val
.
i_time
=
(
-
60000000
*
((
mtime_t
)
pow
(
2
,
i_times
))
);
var_Set
(
p_input
,
"time-offset"
,
val
);
DisplayPosition
(
p_intf
,
p_vout
,
p_input
);
}
else
if
(
i_action
==
ACTIONID_JUMP_FORWARD_1MIN
&&
b_seekable
)
{
val
.
i_time
=
(
60000000
*
2
^
i_times
);
val
.
i_time
=
(
60000000
*
((
mtime_t
)
pow
(
2
,
i_times
))
);
var_Set
(
p_input
,
"time-offset"
,
val
);
DisplayPosition
(
p_intf
,
p_vout
,
p_input
);
}
else
if
(
i_action
==
ACTIONID_JUMP_BACKWARD_5MIN
&&
b_seekable
)
{
val
.
i_time
=
(
-
300000000
*
2
^
i_times
);
val
.
i_time
=
(
-
300000000
*
((
mtime_t
)
pow
(
2
,
i_times
))
);
var_Set
(
p_input
,
"time-offset"
,
val
);
DisplayPosition
(
p_intf
,
p_vout
,
p_input
);
}
else
if
(
i_action
==
ACTIONID_JUMP_FORWARD_5MIN
&&
b_seekable
)
{
val
.
i_time
=
(
300000000
*
2
^
i_times
);
val
.
i_time
=
(
300000000
*
((
mtime_t
)
pow
(
2
,
i_times
))
);
var_Set
(
p_input
,
"time-offset"
,
val
);
DisplayPosition
(
p_intf
,
p_vout
,
p_input
);
}
...
...
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