From 5d57a338ce8e7b2a2ce2a8bd8886d3bb43a3c0dd Mon Sep 17 00:00:00 2001 From: wm4 Date: Sat, 4 Jan 2014 19:42:01 +0100 Subject: 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? --- input/event.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'input/event.c') 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, ""); + mp_input_run_cmd(ictx, MP_ON_OSD_AUTO, cmd, ""); } } 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, ""); + mp_input_run_cmd(ictx, MP_ON_OSD_AUTO, cmd, ""); } } } -- cgit v1.2.3