summaryrefslogtreecommitdiffstats
path: root/command.c
diff options
context:
space:
mode:
Diffstat (limited to 'command.c')
-rw-r--r--command.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/command.c b/command.c
index 13a205dd63..6f44aecf47 100644
--- a/command.c
+++ b/command.c
@@ -3625,6 +3625,19 @@ void run_command(MPContext *mpctx, mp_cmd_t *cmd)
#endif
+ case MP_CMD_VO_CMDLINE:
+ if (mpctx->video_out) {
+ char *s = cmd->args[0].v.s;
+ mp_msg(MSGT_CPLAYER, MSGL_INFO, "Setting vo cmd line to '%s'.\n",
+ s);
+ if (vo_control(mpctx->video_out, VOCTRL_SET_COMMAND_LINE, s) > 0) {
+ set_osd_msg(OSD_MSG_TEXT, 1, osd_duration, "vo='%s'", s);
+ } else {
+ set_osd_msg(OSD_MSG_TEXT, 1, osd_duration, "Failed!");
+ }
+ }
+ break;
+
case MP_CMD_AF_SWITCH:
if (sh_audio) {
af_uninit(mpctx->mixer.afilter);