aboutsummaryrefslogtreecommitdiffhomepage
path: root/input/event.c
diff options
context:
space:
mode:
authorGravatar wm4 <wm4@nowhere>2014-10-10 22:58:28 +0200
committerGravatar wm4 <wm4@nowhere>2014-10-10 22:58:28 +0200
commitc9f45ea93e470159b1bd4c4ddbd5c2c05149d76e (patch)
tree7bc1da5d3c1cb792f6e3955d732110492e245a7c /input/event.c
parent63903c27bd9947b94ef83dc350568b5797af5281 (diff)
input: use mpv_node parser for char** command parsers
Minor simplification, also drops some useless stuff.
Diffstat (limited to 'input/event.c')
-rw-r--r--input/event.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/input/event.c b/input/event.c
index 661a68ecf3..add77f0b0c 100644
--- a/input/event.c
+++ b/input/event.c
@@ -29,22 +29,24 @@ void mp_event_drop_files(struct input_ctx *ictx, int num_files, char **files)
if (all_sub) {
for (int i = 0; i < num_files; i++) {
const char *cmd[] = {
+ "osd-auto",
"sub_add",
files[i],
NULL
};
- mp_input_run_cmd(ictx, MP_ON_OSD_AUTO, cmd, "<drop-subtitle>");
+ mp_input_run_cmd(ictx, cmd);
}
} else {
for (int i = 0; i < num_files; i++) {
const char *cmd[] = {
+ "osd-auto",
"loadfile",
files[i],
/* Start playing the dropped files right away */
(i == 0) ? "replace" : "append",
NULL
};
- mp_input_run_cmd(ictx, MP_ON_OSD_AUTO, cmd, "<drop-files>");
+ mp_input_run_cmd(ictx, cmd);
}
}
}