From 0030e049cd1707762f6f8cd76c7414b95baf928f Mon Sep 17 00:00:00 2001 From: sfan5 Date: Tue, 26 Dec 2017 01:38:32 +0100 Subject: player: add internal `vo-resize` command Intended to be used with the properties from previous commit. --- player/command.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'player') diff --git a/player/command.c b/player/command.c index 2d91c09435..6f2c15b047 100644 --- a/player/command.c +++ b/player/command.c @@ -5419,6 +5419,13 @@ 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); -- cgit v1.2.3