summaryrefslogtreecommitdiffstats
path: root/command.c
diff options
context:
space:
mode:
Diffstat (limited to 'command.c')
-rw-r--r--command.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/command.c b/command.c
index f099322428..4ffe29a351 100644
--- a/command.c
+++ b/command.c
@@ -2924,7 +2924,7 @@ void run_command(MPContext *mpctx, mp_cmd_t *cmd)
case MP_CMD_OSD:{
int v = cmd->args[0].v.i;
- int max = (term_osd
+ int max = (opts->term_osd
&& !sh_video) ? MAX_TERM_OSD_LEVEL : MAX_OSD_LEVEL;
if (opts->osd_level > max)
opts->osd_level = max;