diff options
author | wm4 <wm4@nowhere> | 2013-10-02 21:05:04 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2013-10-02 21:05:04 +0200 |
commit | 93b712fa8ab56217da2e8a5317891f4d0df1838f (patch) | |
tree | 590196b83aadab0731e2b36cfc521838abf18345 /mpvcore/input | |
parent | df5706f156aa43b9fa233aff49cc012ed74de65f (diff) | |
download | mpv-93b712fa8ab56217da2e8a5317891f4d0df1838f.tar.bz2 mpv-93b712fa8ab56217da2e8a5317891f4d0df1838f.tar.xz |
command: add sub_seek input command
Essentially reuses the sub_step command, and is subject to the same
restrictions.
Seems to behave a bit strange sometimes, but generally works.
Diffstat (limited to 'mpvcore/input')
-rw-r--r-- | mpvcore/input/input.c | 1 | ||||
-rw-r--r-- | mpvcore/input/input.h | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/mpvcore/input/input.c b/mpvcore/input/input.c index d318a0d7c5..c78447c4bf 100644 --- a/mpvcore/input/input.c +++ b/mpvcore/input/input.c @@ -157,6 +157,7 @@ static const mp_cmd_t mp_cmds[] = { {"force", 1}, {"1", 1})), }}, { MP_CMD_SUB_STEP, "sub_step", { ARG_INT } }, + { MP_CMD_SUB_SEEK, "sub_seek", { ARG_INT } }, { MP_CMD_OSD, "osd", { OARG_INT(-1) } }, { MP_CMD_PRINT_TEXT, "print_text", { ARG_STRING } }, { MP_CMD_SHOW_TEXT, "show_text", { ARG_STRING, OARG_INT(-1), OARG_INT(0) } }, diff --git a/mpvcore/input/input.h b/mpvcore/input/input.h index 5166e884b4..33c269c1a7 100644 --- a/mpvcore/input/input.h +++ b/mpvcore/input/input.h @@ -43,6 +43,7 @@ enum mp_command_type { MP_CMD_PLAYLIST_REMOVE, MP_CMD_PLAYLIST_MOVE, MP_CMD_SUB_STEP, + MP_CMD_SUB_SEEK, MP_CMD_TV_SET_CHANNEL, MP_CMD_TV_LAST_CHANNEL, MP_CMD_TV_SET_FREQ, |