summaryrefslogtreecommitdiffstats
path: root/core/command.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2013-07-08 20:34:26 +0200
committerwm4 <wm4@nowhere>2013-07-08 20:37:11 +0200
commitc460258f5a85d8d65261b524f23a3608185e58e4 (patch)
tree60974ce21dfb5fe338bf091548e1d0155bba19e9 /core/command.c
parent0bb41524f0a9ed89559b50bd7407de9d8b8aee40 (diff)
downloadmpv-c460258f5a85d8d65261b524f23a3608185e58e4.tar.bz2
mpv-c460258f5a85d8d65261b524f23a3608185e58e4.tar.xz
command: add screenshot_to_file command
Diffstat (limited to 'core/command.c')
-rw-r--r--core/command.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/core/command.c b/core/command.c
index 848ebb848f..6056596d04 100644
--- a/core/command.c
+++ b/core/command.c
@@ -2420,6 +2420,10 @@ void run_command(MPContext *mpctx, mp_cmd_t *cmd)
screenshot_request(mpctx, cmd->args[0].v.i, cmd->args[1].v.i, msg_osd);
break;
+ case MP_CMD_SCREENSHOT_TO_FILE:
+ screenshot_to_file(mpctx, cmd->args[0].v.s, cmd->args[1].v.i, msg_osd);
+ break;
+
case MP_CMD_RUN:
#ifndef __MINGW32__
if (!fork()) {