mirror of https://github.com/mpv-player/mpv
command: remove vo-cmdline
With the recent vo_opengl changes it doesn't do anything anymore. I don't think a deprecation period is necessary, because the command was always marked as experimental.
This commit is contained in:
parent
b2c84a91b6
commit
cd7c7d0841
|
@ -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
|
||||
|
|
|
@ -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.
|
||||
|
|
|
@ -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},
|
||||
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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*
|
||||
|
|
Loading…
Reference in New Issue