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
f05bd0b2
Commit
f05bd0b2
authored
Mar 27, 2008
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove ActionKeyCB - I really can't find any path to this code
parent
5223eff9
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
26 deletions
+0
-26
modules/control/hotkeys.c
modules/control/hotkeys.c
+0
-26
No files found.
modules/control/hotkeys.c
View file @
f05bd0b2
...
...
@@ -71,8 +71,6 @@ static int ActionEvent( vlc_object_t *, char const *,
vlc_value_t
,
vlc_value_t
,
void
*
);
static
int
SpecialKeyEvent
(
vlc_object_t
*
,
char
const
*
,
vlc_value_t
,
vlc_value_t
,
void
*
);
static
int
ActionKeyCB
(
vlc_object_t
*
,
char
const
*
,
vlc_value_t
,
vlc_value_t
,
void
*
);
static
void
PlayBookmark
(
intf_thread_t
*
,
int
);
static
void
SetBookmark
(
intf_thread_t
*
,
int
);
static
void
DisplayPosition
(
intf_thread_t
*
,
vout_thread_t
*
,
input_thread_t
*
);
...
...
@@ -148,8 +146,6 @@ static void Run( intf_thread_t *p_intf )
var_Create
(
p_intf
->
p_libvlc
,
p_hotkeys
[
i
].
psz_action
,
VLC_VAR_HOTKEY
|
VLC_VAR_DOINHERIT
);
var_AddCallback
(
p_intf
->
p_libvlc
,
p_hotkeys
[
i
].
psz_action
,
ActionKeyCB
,
p_hotkeys
+
i
);
var_Get
(
p_intf
->
p_libvlc
,
p_hotkeys
[
i
].
psz_action
,
&
val
);
var_Set
(
p_intf
->
p_libvlc
,
p_hotkeys
[
i
].
psz_action
,
val
);
}
...
...
@@ -927,28 +923,6 @@ static int ActionEvent( vlc_object_t *libvlc, char const *psz_var,
return
PutAction
(
p_intf
,
newval
.
i_int
);
}
static
int
ActionKeyCB
(
vlc_object_t
*
libvlc
,
char
const
*
psz_var
,
vlc_value_t
oldval
,
vlc_value_t
newval
,
void
*
p_data
)
{
mtime_t
i_date
;
struct
hotkey
*
p_hotkey
=
p_data
;
(
void
)
libvlc
;
(
void
)
psz_var
;
(
void
)
oldval
;
p_hotkey
->
i_key
=
newval
.
i_int
;
/* do hotkey accounting */
i_date
=
mdate
();
if
(
(
p_hotkey
->
i_delta_date
>
0
)
&&
(
p_hotkey
->
i_delta_date
<=
(
i_date
-
p_hotkey
->
i_last_date
)
)
)
p_hotkey
->
i_times
=
0
;
else
p_hotkey
->
i_times
++
;
p_hotkey
->
i_last_date
=
i_date
;
return
VLC_SUCCESS
;
}
static
void
PlayBookmark
(
intf_thread_t
*
p_intf
,
int
i_num
)
{
vlc_value_t
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