1
0
mirror of https://github.com/mpv-player/mpv synced 2024-12-22 06:42:03 +00:00

input: resolve ~ and similar for --input-file

Because why not.
This commit is contained in:
wm4 2014-10-24 21:28:07 +02:00
parent 51a3f13705
commit b330f16fed

View File

@ -738,9 +738,10 @@ struct mp_ipc_ctx *mp_init_ipc(struct mp_client_api *client_api,
.path = mp_get_user_path(arg, global, opts->ipc_path),
.death_pipe = {-1, -1},
};
char *input_file = mp_get_user_path(arg, global, opts->input_file);
if (opts->input_file && *opts->input_file)
ipc_start_client_text(arg, opts->input_file);
if (input_file && *input_file)
ipc_start_client_text(arg, input_file);
if (!opts->ipc_path || !*opts->ipc_path)
goto out;