diff options
author | wm4 <wm4@nowhere> | 2014-01-04 19:42:01 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2014-01-04 19:42:16 +0100 |
commit | 5d57a338ce8e7b2a2ce2a8bd8886d3bb43a3c0dd (patch) | |
tree | 5d2e8783cfbe668f25f33c05e14455a862c6c5ce /input/input.h | |
parent | 7c6bb321eb0542c474e5147558fb71ecf2d44bd4 (diff) | |
download | mpv-5d57a338ce8e7b2a2ce2a8bd8886d3bb43a3c0dd.tar.bz2 mpv-5d57a338ce8e7b2a2ce2a8bd8886d3bb43a3c0dd.tar.xz |
input: change mp_input_run_cmd signature
I don't like this function at all, but it's basically a trick to get the
input's mp_log instance in a case the mp_input_parse_cmd_strv() is
almost certainly not going to output anything. But still make it
somewhat more consistent with mp_input_parse_cmd_strv() - why force the
caller to always use MP_ON_OSD_AUTO?
Diffstat (limited to 'input/input.h')
-rw-r--r-- | input/input.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/input/input.h b/input/input.h index de9d143265..55fd4875de 100644 --- a/input/input.h +++ b/input/input.h @@ -210,8 +210,8 @@ int mp_input_check_interrupt(struct input_ctx *ictx, int time); // characters. If false, count Right Alt as the modifier Alt key. bool mp_input_use_alt_gr(struct input_ctx *ictx); -// Runs a command parsing the input string array -void mp_input_run_cmd(struct input_ctx *ictx, const char **cmd, +// Like mp_input_parse_cmd_strv, but also run the command. +void mp_input_run_cmd(struct input_ctx *ictx, int def_flags, const char **cmd, const char *location); extern int async_quit_request; |