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/cmd_list.c | |
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/cmd_list.c')
-rw-r--r-- | input/cmd_list.c | 5 |
1 files changed, 5 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}, |