From 3deb6c3d4f49bd8933c2cab2e58752f6d0a33c6e Mon Sep 17 00:00:00 2001 From: Alessandro Ghedini Date: Wed, 15 Oct 2014 17:48:47 +0200 Subject: input: implement --input-file on unix using the IPC support --- input/input.c | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'input/input.c') diff --git a/input/input.c b/input/input.c index 613d1ec3b0..c9a5bbe99c 100644 --- a/input/input.c +++ b/input/input.c @@ -165,7 +165,6 @@ struct input_opts { int ar_delay; int ar_rate; char *js_dev; - char *in_file; int use_joystick; int use_lirc; char *lirc_configfile; @@ -188,7 +187,6 @@ const struct m_sub_options input_config = { OPT_PRINT("keylist", mp_print_key_list), OPT_PRINT("cmdlist", mp_print_cmd_list), OPT_STRING("js-dev", js_dev, CONF_GLOBAL), - OPT_STRING("file", in_file, CONF_GLOBAL), OPT_FLAG("default-bindings", default_bindings, CONF_GLOBAL), OPT_FLAG("test", test, CONF_GLOBAL), OPT_INTRANGE("doubleclick-time", doubleclick_time, 0, 0, 1000), @@ -1296,13 +1294,14 @@ void mp_input_load(struct input_ctx *ictx) ictx->win_drag = ictx->global->opts->allow_win_drag; - if (input_conf->in_file && input_conf->in_file[0]) { -#if !defined(__MINGW32__) || HAVE_WAIO - mp_input_pipe_add(ictx, input_conf->in_file); +#if defined(__MINGW32__) + if (ictx->global->opts->input_file && *ictx->global->opts->input_file) +#if HAVE_WAIO + mp_input_pipe_add(ictx, ictx->global->opts->input_file); #else MP_ERR(ictx, "Pipes not available.\n"); #endif - } +#endif } static void clear_queue(struct cmd_queue *queue) -- cgit v1.2.3