diff options
author | wm4 <wm4@nowhere> | 2012-08-01 01:06:59 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2012-08-01 01:06:59 +0200 |
commit | e9a18efa2b937f7627447e9f3c82c38ddf6b6eee (patch) | |
tree | 350b384958a6246769ab66caaa116103c8ef4c91 /command.c | |
parent | 4f80c5ee422d6827a3e084f5aaf66bbc710dbcc5 (diff) | |
download | mpv-e9a18efa2b937f7627447e9f3c82c38ddf6b6eee.tar.bz2 mpv-e9a18efa2b937f7627447e9f3c82c38ddf6b6eee.tar.xz |
VO: add mechanisms to change VO commandline for VOs supporting it
Diffstat (limited to 'command.c')
-rw-r--r-- | command.c | 13 |
1 files changed, 13 insertions, 0 deletions
@@ -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); |