diff options
author | sfan5 <sfan5@live.de> | 2017-12-26 01:38:32 +0100 |
---|---|---|
committer | Kevin Mitchell <kevmitch@gmail.com> | 2017-12-27 14:29:15 -0700 |
commit | 0030e049cd1707762f6f8cd76c7414b95baf928f (patch) | |
tree | 55293e914b7fbfee789fce0b89ab2991ead5b94f /player | |
parent | 451fc931b0f4924801b9a27d25a5c0339b2fcace (diff) | |
download | mpv-0030e049cd1707762f6f8cd76c7414b95baf928f.tar.bz2 mpv-0030e049cd1707762f6f8cd76c7414b95baf928f.tar.xz |
player: add internal `vo-resize` command
Intended to be used with the properties from previous commit.
Diffstat (limited to 'player')
-rw-r--r-- | player/command.c | 7 |
1 files changed, 7 insertions, 0 deletions
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); |