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
75208d54
Commit
75208d54
authored
Oct 16, 2005
by
Jean-Paul Saman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make sure to get the right unit
parent
59f25960
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
10 deletions
+10
-10
modules/control/hotkeys.c
modules/control/hotkeys.c
+10
-10
No files found.
modules/control/hotkeys.c
View file @
75208d54
...
@@ -462,49 +462,49 @@ static void Run( intf_thread_t *p_intf )
...
@@ -462,49 +462,49 @@ static void Run( intf_thread_t *p_intf )
}
}
else
if
(
i_action
==
ACTIONID_JUMP_BACKWARD_3SEC
&&
b_seekable
)
else
if
(
i_action
==
ACTIONID_JUMP_BACKWARD_3SEC
&&
b_seekable
)
{
{
val
.
i_time
=
(
-
3000000
*
((
mtime_t
)(
1
<<
i_times
)));
val
.
i_time
=
(
-
3000000
L
*
((
mtime_t
)(
1
<<
i_times
)));
var_Set
(
p_input
,
"time-offset"
,
val
);
var_Set
(
p_input
,
"time-offset"
,
val
);
DisplayPosition
(
p_intf
,
p_vout
,
p_input
);
DisplayPosition
(
p_intf
,
p_vout
,
p_input
);
}
}
else
if
(
i_action
==
ACTIONID_JUMP_FORWARD_3SEC
&&
b_seekable
)
else
if
(
i_action
==
ACTIONID_JUMP_FORWARD_3SEC
&&
b_seekable
)
{
{
val
.
i_time
=
(
3000000
*
((
mtime_t
)(
1
<<
i_times
)));
val
.
i_time
=
(
3000000
L
*
((
mtime_t
)(
1
<<
i_times
)));
var_Set
(
p_input
,
"time-offset"
,
val
);
var_Set
(
p_input
,
"time-offset"
,
val
);
DisplayPosition
(
p_intf
,
p_vout
,
p_input
);
DisplayPosition
(
p_intf
,
p_vout
,
p_input
);
}
}
else
if
(
i_action
==
ACTIONID_JUMP_BACKWARD_10SEC
&&
b_seekable
)
else
if
(
i_action
==
ACTIONID_JUMP_BACKWARD_10SEC
&&
b_seekable
)
{
{
val
.
i_time
=
(
-
10000000
*
((
mtime_t
)(
1
<<
i_times
)));
val
.
i_time
=
(
-
10000000
L
*
((
mtime_t
)(
1
<<
i_times
)));
var_Set
(
p_input
,
"time-offset"
,
val
);
var_Set
(
p_input
,
"time-offset"
,
val
);
DisplayPosition
(
p_intf
,
p_vout
,
p_input
);
DisplayPosition
(
p_intf
,
p_vout
,
p_input
);
}
}
else
if
(
i_action
==
ACTIONID_JUMP_FORWARD_10SEC
&&
b_seekable
)
else
if
(
i_action
==
ACTIONID_JUMP_FORWARD_10SEC
&&
b_seekable
)
{
{
val
.
i_time
=
(
10000000
*
((
mtime_t
)(
1
<<
i_times
)));
val
.
i_time
=
(
10000000
L
*
((
mtime_t
)(
1
<<
i_times
)));
var_Set
(
p_input
,
"time-offset"
,
val
);
var_Set
(
p_input
,
"time-offset"
,
val
);
DisplayPosition
(
p_intf
,
p_vout
,
p_input
);
DisplayPosition
(
p_intf
,
p_vout
,
p_input
);
}
}
else
if
(
i_action
==
ACTIONID_JUMP_BACKWARD_1MIN
&&
b_seekable
)
else
if
(
i_action
==
ACTIONID_JUMP_BACKWARD_1MIN
&&
b_seekable
)
{
{
val
.
i_time
=
(
-
60000000
*
((
mtime_t
)(
1
<<
i_times
)));
val
.
i_time
=
(
-
60000000
L
*
((
mtime_t
)(
1
<<
i_times
)));
var_Set
(
p_input
,
"time-offset"
,
val
);
var_Set
(
p_input
,
"time-offset"
,
val
);
DisplayPosition
(
p_intf
,
p_vout
,
p_input
);
DisplayPosition
(
p_intf
,
p_vout
,
p_input
);
}
}
else
if
(
i_action
==
ACTIONID_JUMP_FORWARD_1MIN
&&
b_seekable
)
else
if
(
i_action
==
ACTIONID_JUMP_FORWARD_1MIN
&&
b_seekable
)
{
{
val
.
i_time
=
(
60000000
*
((
mtime_t
)(
1
<<
i_times
)));
val
.
i_time
=
(
60000000
L
*
((
mtime_t
)(
1
<<
i_times
)));
var_Set
(
p_input
,
"time-offset"
,
val
);
var_Set
(
p_input
,
"time-offset"
,
val
);
DisplayPosition
(
p_intf
,
p_vout
,
p_input
);
DisplayPosition
(
p_intf
,
p_vout
,
p_input
);
}
}
else
if
(
i_action
==
ACTIONID_JUMP_BACKWARD_5MIN
&&
b_seekable
)
else
if
(
i_action
==
ACTIONID_JUMP_BACKWARD_5MIN
&&
b_seekable
)
{
{
val
.
i_time
=
(
-
300000000
*
((
mtime_t
)(
1
<<
i_times
)));
val
.
i_time
=
(
-
300000000
L
*
((
mtime_t
)(
1
<<
i_times
)));
var_Set
(
p_input
,
"time-offset"
,
val
);
var_Set
(
p_input
,
"time-offset"
,
val
);
DisplayPosition
(
p_intf
,
p_vout
,
p_input
);
DisplayPosition
(
p_intf
,
p_vout
,
p_input
);
}
}
else
if
(
i_action
==
ACTIONID_JUMP_FORWARD_5MIN
&&
b_seekable
)
else
if
(
i_action
==
ACTIONID_JUMP_FORWARD_5MIN
&&
b_seekable
)
{
{
val
.
i_time
=
(
300000000
*
((
mtime_t
)(
1
<<
i_times
)));
val
.
i_time
=
(
300000000
L
*
((
mtime_t
)(
1
<<
i_times
)));
var_Set
(
p_input
,
"time-offset"
,
val
);
var_Set
(
p_input
,
"time-offset"
,
val
);
DisplayPosition
(
p_intf
,
p_vout
,
p_input
);
DisplayPosition
(
p_intf
,
p_vout
,
p_input
);
}
}
...
@@ -557,7 +557,7 @@ static void Run( intf_thread_t *p_intf )
...
@@ -557,7 +557,7 @@ static void Run( intf_thread_t *p_intf )
vlc_value_t
val
,
list
,
list2
;
vlc_value_t
val
,
list
,
list2
;
int
i_count
,
i
;
int
i_count
,
i
;
var_Get
(
p_input
,
"spu-es"
,
&
val
);
var_Get
(
p_input
,
"spu-es"
,
&
val
);
var_Change
(
p_input
,
"spu-es"
,
VLC_VAR_GETCHOICES
,
var_Change
(
p_input
,
"spu-es"
,
VLC_VAR_GETCHOICES
,
&
list
,
&
list2
);
&
list
,
&
list2
);
i_count
=
list
.
p_list
->
i_count
;
i_count
=
list
.
p_list
->
i_count
;
...
@@ -738,7 +738,7 @@ static int ActionKeyCB( vlc_object_t *p_this, char const *psz_var,
...
@@ -738,7 +738,7 @@ static int ActionKeyCB( vlc_object_t *p_this, char const *psz_var,
if
(
!
strcmp
(
p_hotkeys
[
i
].
psz_action
,
psz_var
)
)
if
(
!
strcmp
(
p_hotkeys
[
i
].
psz_action
,
psz_var
)
)
{
{
p_hotkeys
[
i
].
i_key
=
newval
.
i_int
;
p_hotkeys
[
i
].
i_key
=
newval
.
i_int
;
/* do hotkey accounting */
/* do hotkey accounting */
i_date
=
mdate
();
i_date
=
mdate
();
if
(
(
p_hotkeys
[
i
].
i_delta_date
>
0
)
&&
if
(
(
p_hotkeys
[
i
].
i_delta_date
>
0
)
&&
(
p_hotkeys
[
i
].
i_delta_date
<=
(
i_date
-
p_hotkeys
[
i
].
i_last_date
)
)
)
(
p_hotkeys
[
i
].
i_delta_date
<=
(
i_date
-
p_hotkeys
[
i
].
i_last_date
)
)
)
...
...
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