]> git.sesse.net Git - vlc/blobdiff - modules/control/rc.c
Remote Control: use vlc_GetActionId
[vlc] / 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] )
         {