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/event.c | |
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/event.c')
-rw-r--r-- | input/event.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/input/event.c b/input/event.c index e2d488b5ca..661a68ecf3 100644 --- a/input/event.c +++ b/input/event.c @@ -33,7 +33,7 @@ void mp_event_drop_files(struct input_ctx *ictx, int num_files, char **files) files[i], NULL }; - mp_input_run_cmd(ictx, cmd, "<drop-subtitle>"); + mp_input_run_cmd(ictx, MP_ON_OSD_AUTO, cmd, "<drop-subtitle>"); } } else { for (int i = 0; i < num_files; i++) { @@ -44,7 +44,7 @@ void mp_event_drop_files(struct input_ctx *ictx, int num_files, char **files) (i == 0) ? "replace" : "append", NULL }; - mp_input_run_cmd(ictx, cmd, "<drop-files>"); + mp_input_run_cmd(ictx, MP_ON_OSD_AUTO, cmd, "<drop-files>"); } } } |