summaryrefslogtreecommitdiffstats
path: root/options
diff options
context:
space:
mode:
authorAlessandro Ghedini <alessandro@ghedini.me>2014-10-15 17:48:47 +0200
committerAlessandro Ghedini <alessandro@ghedini.me>2014-10-17 20:47:43 +0200
commit3deb6c3d4f49bd8933c2cab2e58752f6d0a33c6e (patch)
treeaa3fdc29dd79dd3fb7b8dcac4fc21a02300dd8d9 /options
parente0f0f6fe26b7f8d941a20f2c86564b83e5fb52cb (diff)
downloadmpv-3deb6c3d4f49bd8933c2cab2e58752f6d0a33c6e.tar.bz2
mpv-3deb6c3d4f49bd8933c2cab2e58752f6d0a33c6e.tar.xz
input: implement --input-file on unix using the IPC support
Diffstat (limited to 'options')
-rw-r--r--options/options.c1
-rw-r--r--options/options.h1
2 files changed, 2 insertions, 0 deletions
diff --git a/options/options.c b/options/options.c
index 333f35911f..4621df9b7e 100644
--- a/options/options.c
+++ b/options/options.c
@@ -528,6 +528,7 @@ const m_option_t mp_opts[] = {
OPT_FLAG("idle", player_idle_mode, M_OPT_GLOBAL),
OPT_FLAG("input-terminal", consolecontrols, CONF_GLOBAL),
+ OPT_STRING("input-file", input_file, M_OPT_FILE | M_OPT_GLOBAL),
OPT_STRING("input-unix-socket", ipc_path, M_OPT_FILE),
OPT_SUBSTRUCT("screenshot", screenshot_image_opts, image_writer_conf, 0),
diff --git a/options/options.h b/options/options.h
index a34f3d6042..adbb70e420 100644
--- a/options/options.h
+++ b/options/options.h
@@ -286,6 +286,7 @@ typedef struct MPOpts {
struct encode_opts *encode_opts;
char *ipc_path;
+ char *input_file;
} MPOpts;
extern const m_option_t mp_opts[];