Changeset 19abe81cd32ca27db24d99bd82123610d06b79da

Show
Ignore:
Timestamp:
27/03/08 19:46:22 (7 months ago)
Author:
Rémi Denis-Courmont <rem@videolan.org>
git-committer:
Rémi Denis-Courmont <rem@videolan.org> 1206643582 +0200
git-parent:

[381646bbb8c15d32a4c5975dbe1ce5ec0c269683]

git-author:
Rémi Denis-Courmont <rem@videolan.org> 1206564654 +0200
Message:

access_filter_record: use key-action

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • modules/access_filter/record.c

    r540c761 r19abe81  
    161161 
    162162    /* catch all key event */ 
    163     var_AddCallback( p_access->p_libvlc, "key-pressed", EventKey, p_access ); 
     163    var_AddCallback( p_access->p_libvlc, "key-action", EventKey, p_access ); 
    164164 
    165165    return VLC_SUCCESS; 
     
    174174    access_sys_t *p_sys = p_access->p_sys; 
    175175 
    176     var_DelCallback( p_access->p_libvlc, "key-pressed", EventKey, p_access ); 
     176    var_DelCallback( p_access->p_libvlc, "key-action", EventKey, p_access ); 
    177177 
    178178    if( p_sys->f ) 
     
    280280    access_sys_t *p_sys = p_access->p_sys; 
    281281 
    282     struct hotkey *p_hotkeys = p_access->p_libvlc->p_hotkeys; 
    283     int i_action = -1, i; 
    284  
    285     for( i = 0; p_hotkeys[i].psz_action != NULL; i++ ) 
    286     { 
    287         if( p_hotkeys[i].i_key == newval.i_int ) 
    288         { 
    289             i_action = p_hotkeys[i].i_action; 
    290         } 
    291     } 
    292  
    293     if( i_action == ACTIONID_RECORD ) 
     282    (void)psz_var; 
     283    (void)oldval; 
     284 
     285    if( newval.i_int == ACTIONID_RECORD ) 
    294286    { 
    295287        if( p_sys->b_dump )