Changeset e59d7e85b4f4a780a19c15a641fb275170de0c2e

Show
Ignore:
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
  • modules/access_filter/dump.c

    r540c761 re59d7e8  
    122122    p_sys->tmp_max = ((int64_t)var_CreateGetInteger (access, "dump-margin")) << 20; 
    123123 
    124     var_AddCallback (access->p_libvlc, "key-pressed", KeyHandler, access); 
     124    var_AddCallback (access->p_libvlc, "key-action", KeyHandler, access); 
    125125 
    126126    return VLC_SUCCESS; 
     
    136136    access_sys_t *p_sys = access->p_sys; 
    137137 
    138     var_DelCallback (access->p_libvlc, "key-pressed", KeyHandler, access); 
     138    var_DelCallback (access->p_libvlc, "key-action", KeyHandler, access); 
    139139 
    140140    if (p_sys->stream != NULL) 
     
    328328    (void)obj; 
    329329 
    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); 
    341332    return VLC_SUCCESS; 
    342333}