From c460258f5a85d8d65261b524f23a3608185e58e4 Mon Sep 17 00:00:00 2001 From: wm4 Date: Mon, 8 Jul 2013 20:34:26 +0200 Subject: command: add screenshot_to_file command --- core/input/input.c | 6 ++++++ core/input/input.h | 1 + 2 files changed, 7 insertions(+) (limited to 'core/input') diff --git a/core/input/input.c b/core/input/input.c index ce7b868c02..e87d9bb560 100644 --- a/core/input/input.c +++ b/core/input/input.c @@ -171,6 +171,12 @@ static const mp_cmd_t mp_cmds[] = { OARG_CHOICE(0, ({"single", 0}, {"each-frame", 1})), }}, + { MP_CMD_SCREENSHOT_TO_FILE, "screenshot_to_file", { + ARG_STRING, + OARG_CHOICE(2, ({"video", 0}, + {"window", 1}, + {"subtitles", 2})), + }}, { MP_CMD_LOADFILE, "loadfile", { ARG_STRING, OARG_CHOICE(0, ({"replace", 0}, {"0", 0}, diff --git a/core/input/input.h b/core/input/input.h index f7d69a0de7..da92efd373 100644 --- a/core/input/input.h +++ b/core/input/input.h @@ -36,6 +36,7 @@ enum mp_command_type { MP_CMD_TV_STEP_NORM, MP_CMD_TV_STEP_CHANNEL_LIST, MP_CMD_SCREENSHOT, + MP_CMD_SCREENSHOT_TO_FILE, MP_CMD_LOADFILE, MP_CMD_LOADLIST, MP_CMD_PLAYLIST_CLEAR, -- cgit v1.2.3