mirror of
https://github.com/mpv-player/mpv
synced 2024-12-28 01:52:19 +00:00
Simplify the condition code.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25524 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
951bc25530
commit
c8a8ffcf36
@ -59,7 +59,7 @@ static int cmd_filter(mp_cmd_t* cmd, int paused, struct vf_priv_s * priv) {
|
||||
case MP_CMD_MENU : { // Convert txt cmd from the users into libmenu stuff
|
||||
char* arg = cmd->args[0].v.s;
|
||||
|
||||
if(!priv->current->show && !(strcmp(arg,"hide") == 0) )
|
||||
if (!priv->current->show && strcmp(arg,"hide"))
|
||||
priv->current->show = 1;
|
||||
else if(strcmp(arg,"up") == 0)
|
||||
menu_read_cmd(priv->current,MENU_CMD_UP);
|
||||
|
Loading…
Reference in New Issue
Block a user