Changeset e59d7e85b4f4a780a19c15a641fb275170de0c2e
- Timestamp:
- 03/27/08 19:46:21
(5 months ago)
- Author:
- Rémi Denis-Courmont <rem@videolan.org>
- git-committer:
- Rémi Denis-Courmont <rem@videolan.org> 1206643581 +0200
- git-parent:
[88226a802f38e75d0dbea4a74b8ec108a42ca653]
- git-author:
- Rémi Denis-Courmont <rem@videolan.org> 1206562999 +0200
- Message:
access_filter_dump: use key-action
-
Files:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
| r540c761 |
re59d7e8 |
|
| 122 | 122 | p_sys->tmp_max = ((int64_t)var_CreateGetInteger (access, "dump-margin")) << 20; |
|---|
| 123 | 123 | |
|---|
| 124 | | var_AddCallback (access->p_libvlc, "key-pressed", KeyHandler, access); |
|---|
| | 124 | var_AddCallback (access->p_libvlc, "key-action", KeyHandler, access); |
|---|
| 125 | 125 | |
|---|
| 126 | 126 | return VLC_SUCCESS; |
|---|
| … | … | |
| 136 | 136 | access_sys_t *p_sys = access->p_sys; |
|---|
| 137 | 137 | |
|---|
| 138 | | var_DelCallback (access->p_libvlc, "key-pressed", KeyHandler, access); |
|---|
| | 138 | var_DelCallback (access->p_libvlc, "key-action", KeyHandler, access); |
|---|
| 139 | 139 | |
|---|
| 140 | 140 | if (p_sys->stream != NULL) |
|---|
| … | … | |
| 328 | 328 | (void)obj; |
|---|
| 329 | 329 | |
|---|
| 330 | | for (struct hotkey *key = access->p_libvlc->p_hotkeys; |
|---|
| 331 | | key->psz_action != NULL; key++) |
|---|
| 332 | | { |
|---|
| 333 | | if (key->i_key == newval.i_int) |
|---|
| 334 | | { |
|---|
| 335 | | if (key->i_action == ACTIONID_DUMP) |
|---|
| 336 | | Trigger ((access_t *)data); |
|---|
| 337 | | break; |
|---|
| 338 | | } |
|---|
| 339 | | } |
|---|
| 340 | | |
|---|
| | 330 | if (newval.i_int == ACTIONID_DUMP) |
|---|
| | 331 | Trigger (access); |
|---|
| 341 | 332 | return VLC_SUCCESS; |
|---|
| 342 | 333 | } |
|---|