From a3680d1b2d137461008d38486cdb2d5013291e61 Mon Sep 17 00:00:00 2001 From: wm4 Date: Mon, 20 Apr 2015 23:11:03 +0200 Subject: 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. --- input/cmd_list.c | 5 +++++ input/cmd_list.h | 1 + 2 files changed, 6 insertions(+) (limited to 'input') 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, -- cgit v1.2.3