diff options
author | sfan5 <sfan5@live.de> | 2018-01-02 21:20:06 +0100 |
---|---|---|
committer | Kevin Mitchell <kevmitch@gmail.com> | 2018-01-02 15:04:31 -0800 |
commit | 3cb616a2862e5b86f06345c9e9ba2d518b6100b7 (patch) | |
tree | 95728a8d926ee67d0d2bd3ebd80c21fa0fe7e238 | |
parent | 48943a73f68b09da9ff7120ca2804cf74f1cc27d (diff) | |
download | mpv-3cb616a2862e5b86f06345c9e9ba2d518b6100b7.tar.bz2 mpv-3cb616a2862e5b86f06345c9e9ba2d518b6100b7.tar.xz |
player: remove internal `vo-resize` command again
Its only usecase was automated in the previous commit.
-rw-r--r-- | DOCS/man/input.rst | 2 | ||||
-rw-r--r-- | input/cmd_list.c | 1 | ||||
-rw-r--r-- | input/cmd_list.h | 1 | ||||
-rw-r--r-- | player/command.c | 7 |
4 files changed, 1 insertions, 10 deletions
diff --git a/DOCS/man/input.rst b/DOCS/man/input.rst index 0ae4a0c0c8..ad1d63ad4a 100644 --- a/DOCS/man/input.rst +++ b/DOCS/man/input.rst @@ -732,7 +732,7 @@ Input Commands that are Possibly Subject to Change Load a script, similar to the ``--script`` option. Undocumented commands: ``tv-last-channel`` (TV/DVB only), -``ao-reload``, ``vo-resize`` (experimental/internal). +``ao-reload`` (experimental/internal). Hooks ~~~~~ diff --git a/input/cmd_list.c b/input/cmd_list.c index 44cd65fbce..333f2cb223 100644 --- a/input/cmd_list.c +++ b/input/cmd_list.c @@ -191,7 +191,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_RESIZE, "vo-resize", }, { 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 6b1b19795c..6590158c31 100644 --- a/input/cmd_list.h +++ b/input/cmd_list.h @@ -99,7 +99,6 @@ enum mp_command_type { /// Video filter commands MP_CMD_VF, MP_CMD_VF_COMMAND, - MP_CMD_VO_RESIZE, /// Internal for Lua scripts MP_CMD_SCRIPT_BINDING, diff --git a/player/command.c b/player/command.c index 541e2d1987..b159f91708 100644 --- a/player/command.c +++ b/player/command.c @@ -5434,13 +5434,6 @@ int run_command(struct MPContext *mpctx, struct mp_cmd *cmd, struct mpv_node *re reload_audio_output(mpctx); break; - case MP_CMD_VO_RESIZE: { - if (!mpctx->video_out) - return -1; - vo_control(mpctx->video_out, VOCTRL_EXTERNAL_RESIZE, NULL); - break; - } - case MP_CMD_AF: return edit_filters_osd(mpctx, STREAM_AUDIO, cmd->args[0].v.s, cmd->args[1].v.s, msg_osd); |