summaryrefslogtreecommitdiffstats
path: root/player/command.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2016-01-22 16:18:28 +0100
committerwm4 <wm4@nowhere>2016-01-22 16:18:28 +0100
commit135a7217b92c0b1c29ea40ab405566e72d23ae4b (patch)
tree491bfc975d15c4df6095a30720dd9bd404f73e70 /player/command.c
parentce0b26c60ff31166b4b4317d269c52fe7d576c5c (diff)
downloadmpv-135a7217b92c0b1c29ea40ab405566e72d23ae4b.tar.bz2
mpv-135a7217b92c0b1c29ea40ab405566e72d23ae4b.tar.xz
command: add vf-command command
Diffstat (limited to 'player/command.c')
-rw-r--r--player/command.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/player/command.c b/player/command.c
index 5be8c2d120..7bcdffc1c4 100644
--- a/player/command.c
+++ b/player/command.c
@@ -4931,6 +4931,12 @@ int run_command(struct MPContext *mpctx, struct mp_cmd *cmd, struct mpv_node *re
return edit_filters_osd(mpctx, STREAM_VIDEO, cmd->args[0].v.s,
cmd->args[1].v.s, msg_osd);
+ case MP_CMD_VF_COMMAND:
+ if (!mpctx->vo_chain)
+ return -1;
+ return vf_send_command(mpctx->vo_chain->vf, cmd->args[0].v.s,
+ cmd->args[1].v.s, cmd->args[2].v.s);
+
case MP_CMD_SCRIPT_BINDING: {
mpv_event_client_message event = {0};
char *name = cmd->args[0].v.s;