Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-1.1
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-1.1
Commits
736c8e04
Commit
736c8e04
authored
Aug 22, 2005
by
Sam Hocevar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* modules/control/hotkeys.c: replaced pow(2,x) constructs with (1<<x). (P.S.: mouahahaha)
parent
c7880afa
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
9 deletions
+8
-9
modules/control/hotkeys.c
modules/control/hotkeys.c
+8
-9
No files found.
modules/control/hotkeys.c
View file @
736c8e04
...
...
@@ -26,7 +26,6 @@
* Preamble
*****************************************************************************/
#include <stdlib.h>
/* malloc(), free() */
#include <math.h>
#include <vlc/vlc.h>
#include <vlc/intf.h>
...
...
@@ -463,49 +462,49 @@ static void Run( intf_thread_t *p_intf )
}
else
if
(
i_action
==
ACTIONID_JUMP_BACKWARD_3SEC
&&
b_seekable
)
{
val
.
i_time
=
(
-
3000000
*
((
mtime_t
)
pow
(
2
,
i_times
)));
val
.
i_time
=
(
-
3000000
*
((
mtime_t
)
(
1
<<
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
*
((
mtime_t
)
pow
(
2
,
i_times
)));
val
.
i_time
=
(
3000000
*
((
mtime_t
)
(
1
<<
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
*
((
mtime_t
)
pow
(
2
,
i_times
)));
val
.
i_time
=
(
-
10000000
*
((
mtime_t
)
(
1
<<
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
*
((
mtime_t
)
pow
(
2
,
i_times
)));
val
.
i_time
=
(
10000000
*
((
mtime_t
)
(
1
<<
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
*
((
mtime_t
)
pow
(
2
,
i_times
)));
val
.
i_time
=
(
-
60000000
*
((
mtime_t
)
(
1
<<
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
*
((
mtime_t
)
pow
(
2
,
i_times
)));
val
.
i_time
=
(
60000000
*
((
mtime_t
)
(
1
<<
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
*
((
mtime_t
)
pow
(
2
,
i_times
)));
val
.
i_time
=
(
-
300000000
*
((
mtime_t
)
(
1
<<
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
*
((
mtime_t
)
pow
(
2
,
i_times
)));
val
.
i_time
=
(
300000000
*
((
mtime_t
)
(
1
<<
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