diff options
author | wm4 <wm4@nowhere> | 2015-04-20 23:11:03 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2015-04-20 23:11:03 +0200 |
commit | a3680d1b2d137461008d38486cdb2d5013291e61 (patch) | |
tree | e3bafaac8a13edf57ff3456333a26fd057ac0790 /input | |
parent | ccfe4d64184ae4c2983ae6b099c7c7ebb3770d0f (diff) | |
download | mpv-a3680d1b2d137461008d38486cdb2d5013291e61.tar.bz2 mpv-a3680d1b2d137461008d38486cdb2d5013291e61.tar.xz |
client API: add a screenshot_raw command
Requested.
The wild code for setting up the mpv_node probably deserves to be
cleaned up later.
Fixes #1800.
Diffstat (limited to 'input')
-rw-r--r-- | input/cmd_list.c | 5 | ||||
-rw-r--r-- | input/cmd_list.h | 1 |
2 files changed, 6 insertions, 0 deletions
diff --git a/input/cmd_list.c b/input/cmd_list.c index 9005121985..acd8ae72a1 100644 --- a/input/cmd_list.c +++ b/input/cmd_list.c @@ -119,6 +119,11 @@ const struct mp_cmd_def mp_cmds[] = { {"window", 1}, {"subtitles", 2})), }}, + { MP_CMD_SCREENSHOT_RAW, "screenshot_raw", { + OARG_CHOICE(2, ({"video", 0}, + {"window", 1}, + {"subtitles", 2})), + }}, { MP_CMD_LOADFILE, "loadfile", { ARG_STRING, OARG_CHOICE(0, ({"replace", 0}, diff --git a/input/cmd_list.h b/input/cmd_list.h index 52dc6426fa..e9418d4429 100644 --- a/input/cmd_list.h +++ b/input/cmd_list.h @@ -48,6 +48,7 @@ enum mp_command_type { MP_CMD_OSD, MP_CMD_SCREENSHOT, MP_CMD_SCREENSHOT_TO_FILE, + MP_CMD_SCREENSHOT_RAW, MP_CMD_LOADFILE, MP_CMD_LOADLIST, MP_CMD_PLAYLIST_CLEAR, |