diff options
Diffstat (limited to 'input/event.c')
-rw-r--r-- | input/event.c | 6 |
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); } } } |