]> git.sesse.net Git - vlc/commitdiff
Remote Control: use vlc_GetActionId
authorRémi Denis-Courmont <remi@remlab.net>
Wed, 30 Dec 2009 19:37:27 +0000 (21:37 +0200)
committerRémi Denis-Courmont <remi@remlab.net>
Wed, 30 Dec 2009 19:50:31 +0000 (21:50 +0200)
modules/control/rc.c

index d57151b1e222c92b1557db12386b28b9d6b2a2a0..7df6606d4084c8b58905f4d196756dcfc0a628cd 100644 (file)
@@ -739,8 +739,8 @@ static void Run( intf_thread_t *p_intf )
         }
         else if( !strcmp( psz_cmd, "key" ) || !strcmp( psz_cmd, "hotkey" ) )
         {
-            var_SetInteger( p_intf->p_libvlc, "key-pressed",
-                            config_GetInt( p_intf, psz_arg ) );
+            var_SetInteger( p_intf->p_libvlc, "key-action",
+                            vlc_GetActionId( psz_arg ) );
         }
         else switch( psz_cmd[0] )
         {