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
e59d7e85
Commit
e59d7e85
authored
Mar 26, 2008
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
access_filter_dump: use key-action
parent
88226a80
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
13 deletions
+4
-13
modules/access_filter/dump.c
modules/access_filter/dump.c
+4
-13
No files found.
modules/access_filter/dump.c
View file @
e59d7e85
...
...
@@ -121,7 +121,7 @@ static int Open (vlc_object_t *obj)
}
p_sys
->
tmp_max
=
((
int64_t
)
var_CreateGetInteger
(
access
,
"dump-margin"
))
<<
20
;
var_AddCallback
(
access
->
p_libvlc
,
"key-
pressed
"
,
KeyHandler
,
access
);
var_AddCallback
(
access
->
p_libvlc
,
"key-
action
"
,
KeyHandler
,
access
);
return
VLC_SUCCESS
;
}
...
...
@@ -135,7 +135,7 @@ static void Close (vlc_object_t *obj)
access_t
*
access
=
(
access_t
*
)
obj
;
access_sys_t
*
p_sys
=
access
->
p_sys
;
var_DelCallback
(
access
->
p_libvlc
,
"key-
pressed
"
,
KeyHandler
,
access
);
var_DelCallback
(
access
->
p_libvlc
,
"key-
action
"
,
KeyHandler
,
access
);
if
(
p_sys
->
stream
!=
NULL
)
fclose
(
p_sys
->
stream
);
...
...
@@ -327,16 +327,7 @@ static int KeyHandler (vlc_object_t *obj, char const *varname,
(
void
)
oldval
;
(
void
)
obj
;
for
(
struct
hotkey
*
key
=
access
->
p_libvlc
->
p_hotkeys
;
key
->
psz_action
!=
NULL
;
key
++
)
{
if
(
key
->
i_key
==
newval
.
i_int
)
{
if
(
key
->
i_action
==
ACTIONID_DUMP
)
Trigger
((
access_t
*
)
data
);
break
;
}
}
if
(
newval
.
i_int
==
ACTIONID_DUMP
)
Trigger
(
access
);
return
VLC_SUCCESS
;
}
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