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
19abe81c
Commit
19abe81c
authored
Mar 26, 2008
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
access_filter_record: use key-action
parent
381646bb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
13 deletions
+5
-13
modules/access_filter/record.c
modules/access_filter/record.c
+5
-13
No files found.
modules/access_filter/record.c
View file @
19abe81c
...
...
@@ -160,7 +160,7 @@ static int Open( vlc_object_t *p_this )
msg_Dbg
(
p_access
,
"Record access filter path %s"
,
psz
);
/* catch all key event */
var_AddCallback
(
p_access
->
p_libvlc
,
"key-
pressed
"
,
EventKey
,
p_access
);
var_AddCallback
(
p_access
->
p_libvlc
,
"key-
action
"
,
EventKey
,
p_access
);
return
VLC_SUCCESS
;
}
...
...
@@ -173,7 +173,7 @@ static void Close( vlc_object_t *p_this )
access_t
*
p_access
=
(
access_t
*
)
p_this
;
access_sys_t
*
p_sys
=
p_access
->
p_sys
;
var_DelCallback
(
p_access
->
p_libvlc
,
"key-
pressed
"
,
EventKey
,
p_access
);
var_DelCallback
(
p_access
->
p_libvlc
,
"key-
action
"
,
EventKey
,
p_access
);
if
(
p_sys
->
f
)
{
...
...
@@ -279,18 +279,10 @@ static int EventKey( vlc_object_t *p_this, char const *psz_var,
access_t
*
p_access
=
p_data
;
access_sys_t
*
p_sys
=
p_access
->
p_sys
;
struct
hotkey
*
p_hotkeys
=
p_access
->
p_libvlc
->
p_hotkeys
;
int
i_action
=
-
1
,
i
;
(
void
)
psz_var
;
(
void
)
oldval
;
for
(
i
=
0
;
p_hotkeys
[
i
].
psz_action
!=
NULL
;
i
++
)
{
if
(
p_hotkeys
[
i
].
i_key
==
newval
.
i_int
)
{
i_action
=
p_hotkeys
[
i
].
i_action
;
}
}
if
(
i_action
==
ACTIONID_RECORD
)
if
(
newval
.
i_int
==
ACTIONID_RECORD
)
{
if
(
p_sys
->
b_dump
)
p_sys
->
b_dump
=
VLC_FALSE
;
...
...
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