[vlc-commits] cli: fix key command argument count

Rémi Denis-Courmont git at videolan.org
Sun Nov 29 14:55:38 CET 2020


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sat Nov 28 15:36:00 2020 +0200| [34729bc895164bee169a0fb207ad88eece9f1553] | committer: Rémi Denis-Courmont

cli: fix key command argument count

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=34729bc895164bee169a0fb207ad88eece9f1553
---

 modules/control/cli/cli.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/control/cli/cli.c b/modules/control/cli/cli.c
index cf65594ade..d0a60a3231 100644
--- a/modules/control/cli/cli.c
+++ b/modules/control/cli/cli.c
@@ -264,7 +264,7 @@ static int KeyAction(intf_thread_t *intf, const char *const *args, size_t n)
 {
     vlc_object_t *vlc = VLC_OBJECT(vlc_object_instance(intf));
 
-    if (n != 1)
+    if (n != 2)
         return VLC_EGENERIC; /* EINVAL */
 
     var_SetInteger(vlc, "key-action", vlc_actions_get_id(args[1]));



More information about the vlc-commits mailing list