}
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;
}
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);
(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;
}