Commit ac434f31 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Don't create an unused variable per action

parent 38d28036
...@@ -135,19 +135,16 @@ static void Close( vlc_object_t *p_this ) ...@@ -135,19 +135,16 @@ static void Close( vlc_object_t *p_this )
static void Run( intf_thread_t *p_intf ) static void Run( intf_thread_t *p_intf )
{ {
vout_thread_t *p_vout = NULL; vout_thread_t *p_vout = NULL;
struct hotkey *p_hotkeys = p_intf->p_libvlc->p_hotkeys;
vlc_value_t val; vlc_value_t val;
int i; int i;
playlist_t *p_playlist = pl_Yield( p_intf ); playlist_t *p_playlist = pl_Yield( p_intf );
/* Initialize hotkey structure */ /* Initialize hotkey structure */
for( i = 0; p_hotkeys[i].psz_action != NULL; i++ ) for( struct hotkey *p_hotkey = p_intf->p_libvlc->p_hotkeys;
p_hotkey->psz_action != NULL;
p_hotkey++ )
{ {
var_Create( p_intf->p_libvlc, p_hotkeys[i].psz_action, p_hotkey->i_key = config_GetInt( p_intf, p_hotkey->psz_action );
VLC_VAR_HOTKEY | VLC_VAR_DOINHERIT );
var_Get( p_intf->p_libvlc, p_hotkeys[i].psz_action, &val );
var_Set( p_intf->p_libvlc, p_hotkeys[i].psz_action, val );
} }
for( ;; ) for( ;; )
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment