diff options
author | wm4 <wm4@nowhere> | 2020-04-09 01:05:51 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2020-04-09 01:05:51 +0200 |
commit | 1bdc3bed001168d8d2039955e57fead1ecc68144 (patch) | |
tree | 4f123328b736715219f161bb5e1597fbaeedf879 /options | |
parent | fd3caa264ea0848e7e30db94390063c87e247003 (diff) | |
download | mpv-1bdc3bed001168d8d2039955e57fead1ecc68144.tar.bz2 mpv-1bdc3bed001168d8d2039955e57fead1ecc68144.tar.xz |
ipc: add --input-ipc-client option
While --input-file was removed for justified reasons, wanting to pass
down socket FDs this way is legitimate, useful, and easy to implement.
One odd thing is that
Fixes: #7592
Diffstat (limited to 'options')
-rw-r--r-- | options/options.c | 3 | ||||
-rw-r--r-- | options/options.h | 1 |
2 files changed, 4 insertions, 0 deletions
diff --git a/options/options.c b/options/options.c index 170472af1c..c7d75b0648 100644 --- a/options/options.c +++ b/options/options.c @@ -719,6 +719,9 @@ static const m_option_t mp_opts[] = { {"input-terminal", OPT_FLAG(consolecontrols), .flags = UPDATE_TERM}, {"input-ipc-server", OPT_STRING(ipc_path), .flags = M_OPT_FILE}, +#if HAVE_POSIX + {"input-ipc-client", OPT_STRING(ipc_client)}, +#endif {"screenshot", OPT_SUBSTRUCT(screenshot_image_opts, screenshot_conf)}, {"screenshot-template", OPT_STRING(screenshot_template)}, diff --git a/options/options.h b/options/options.h index 1eed3184b7..db48135b1a 100644 --- a/options/options.h +++ b/options/options.h @@ -319,6 +319,7 @@ typedef struct MPOpts { struct encode_opts *encode_opts; char *ipc_path; + char *ipc_client; int wingl_dwm_flush; |