diff options
-rw-r--r-- | DOCS/interface-changes.rst | 2 | ||||
-rw-r--r-- | DOCS/man/input.rst | 7 | ||||
-rw-r--r-- | input/cmd_list.c | 2 | ||||
-rw-r--r-- | input/cmd_list.h | 3 | ||||
-rw-r--r-- | player/command.c | 13 | ||||
-rw-r--r-- | video/out/vo.h | 1 |
6 files changed, 2 insertions, 26 deletions
diff --git a/DOCS/interface-changes.rst b/DOCS/interface-changes.rst index 71afa2ab26..493e3cefbc 100644 --- a/DOCS/interface-changes.rst +++ b/DOCS/interface-changes.rst @@ -46,6 +46,8 @@ Interface changes set another VO, it won't work. But this also means it can be used with opengl-cb. - deprecate --vo-defaults (no replacement) + - remove the vo-cmdline command. You can set OpenGL renderer options + directly via properties instead. --- mpv 0.20.0 --- - add --image-display-duration option - this also means that image duration is not influenced by --mf-fps anymore in the general case (this is an diff --git a/DOCS/man/input.rst b/DOCS/man/input.rst index dbd6166df9..84166a565f 100644 --- a/DOCS/man/input.rst +++ b/DOCS/man/input.rst @@ -665,13 +665,6 @@ Input Commands that are Possibly Subject to Change (the ``ab-loop-a`` property); the second the ``B`` point, and the third will clear both points. -``vo-cmdline "<args>"`` - Reset the sub-option of the current VO. Currently works with ``opengl`` - (including ``opengl-hq``). The argument is the sub-option string usually - passed to the VO on the command line. Not all sub-options can be set, but - those which can will be reset even if they don't appear in the argument. - This command might be changed or removed in the future. - ``drop-buffers`` Drop audio/video/demuxer buffers, and restart from fresh. Might help with unseekable streams that are going out of sync. diff --git a/input/cmd_list.c b/input/cmd_list.c index 8cc6210a91..bc3c622075 100644 --- a/input/cmd_list.c +++ b/input/cmd_list.c @@ -186,8 +186,6 @@ const struct mp_cmd_def mp_cmds[] = { { MP_CMD_VF, "vf", { ARG_STRING, ARG_STRING } }, { MP_CMD_VF_COMMAND, "vf-command", { ARG_STRING, ARG_STRING, ARG_STRING } }, - { MP_CMD_VO_CMDLINE, "vo-cmdline", { ARG_STRING } }, - { MP_CMD_SCRIPT_BINDING, "script-binding", { ARG_STRING }, .allow_auto_repeat = true, .on_updown = true}, diff --git a/input/cmd_list.h b/input/cmd_list.h index 4e324bf01c..e1018c38aa 100644 --- a/input/cmd_list.h +++ b/input/cmd_list.h @@ -99,9 +99,6 @@ enum mp_command_type { MP_CMD_VF, MP_CMD_VF_COMMAND, - /// Video output commands - MP_CMD_VO_CMDLINE, - /// Internal for Lua scripts MP_CMD_SCRIPT_BINDING, MP_CMD_SCRIPT_MESSAGE, diff --git a/player/command.c b/player/command.c index b2ca9c0360..942430f3ba 100644 --- a/player/command.c +++ b/player/command.c @@ -5205,19 +5205,6 @@ int run_command(struct MPContext *mpctx, struct mp_cmd *cmd, struct mpv_node *re break; } - case MP_CMD_VO_CMDLINE: - if (mpctx->video_out) { - char *s = cmd->args[0].v.s; - MP_INFO(mpctx, "Setting vo cmd line to '%s'.\n", s); - if (vo_control(mpctx->video_out, VOCTRL_SET_COMMAND_LINE, s) > 0) { - set_osd_msg(mpctx, osdl, osd_duration, "vo='%s'", s); - } else { - set_osd_msg(mpctx, osdl, osd_duration, "Failed!"); - return -1; - } - } - break; - case MP_CMD_AO_RELOAD: reload_audio_output(mpctx); break; diff --git a/video/out/vo.h b/video/out/vo.h index 3714fbf9ca..15f9f9e7df 100644 --- a/video/out/vo.h +++ b/video/out/vo.h @@ -101,7 +101,6 @@ enum mp_voctrl { // Retrieve window contents. (Normal screenshots use vo_get_current_frame().) VOCTRL_SCREENSHOT_WIN, // struct mp_image** - VOCTRL_SET_COMMAND_LINE, // char** VOCTRL_UPDATE_RENDER_OPTS, VOCTRL_GET_ICC_PROFILE, // bstr* |