diff options
author | wm4 <wm4@nowhere> | 2013-09-30 22:27:37 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2013-10-05 22:46:55 +0200 |
commit | ae9a3e33aafaa0d708d54e2c42a563e45dadb0f7 (patch) | |
tree | dcdd7a4ee2e1b6456c69b02a90a15fad410fbff3 /mpvcore/input | |
parent | fd49edccf811de0d6c61f30d8b2b524f8df93b36 (diff) | |
download | mpv-ae9a3e33aafaa0d708d54e2c42a563e45dadb0f7.tar.bz2 mpv-ae9a3e33aafaa0d708d54e2c42a563e45dadb0f7.tar.xz |
command: add commands for displaying overlays
Requested by github issue #255.
Does not work where mmap is not available (i.e. Windows).
Diffstat (limited to 'mpvcore/input')
-rw-r--r-- | mpvcore/input/input.c | 5 | ||||
-rw-r--r-- | mpvcore/input/input.h | 3 |
2 files changed, 8 insertions, 0 deletions
diff --git a/mpvcore/input/input.c b/mpvcore/input/input.c index c78447c4bf..4ce7fe0156 100644 --- a/mpvcore/input/input.c +++ b/mpvcore/input/input.c @@ -232,6 +232,11 @@ static const mp_cmd_t mp_cmds[] = { { MP_CMD_SCRIPT_DISPATCH, "script_dispatch", { ARG_STRING, ARG_INT } }, + { MP_CMD_OVERLAY_ADD, "overlay_add", + { ARG_INT, ARG_INT, ARG_INT, ARG_STRING, ARG_INT, ARG_STRING, ARG_INT, + ARG_INT, ARG_INT }}, + { MP_CMD_OVERLAY_REMOVE, "overlay_remove", { ARG_INT } }, + {0} }; diff --git a/mpvcore/input/input.h b/mpvcore/input/input.h index 33c269c1a7..dc308ff9f6 100644 --- a/mpvcore/input/input.h +++ b/mpvcore/input/input.h @@ -89,6 +89,9 @@ enum mp_command_type { /// Internal for Lua scripts MP_CMD_SCRIPT_DISPATCH, + MP_CMD_OVERLAY_ADD, + MP_CMD_OVERLAY_REMOVE, + // Internal MP_CMD_COMMAND_LIST, // list of sub-commands in args[0].v.p }; |