summaryrefslogtreecommitdiffstats
path: root/player
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2020-04-09 01:05:51 +0200
committerwm4 <wm4@nowhere>2020-04-09 01:05:51 +0200
commit1bdc3bed001168d8d2039955e57fead1ecc68144 (patch)
tree4f123328b736715219f161bb5e1597fbaeedf879 /player
parentfd3caa264ea0848e7e30db94390063c87e247003 (diff)
downloadmpv-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 'player')
-rw-r--r--player/command.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/player/command.c b/player/command.c
index a41a636c7d..ff4d95ccd8 100644
--- a/player/command.c
+++ b/player/command.c
@@ -6229,7 +6229,7 @@ void mp_option_change_callback(void *ctx, struct m_config_option *co, int flags,
if (flags & UPDATE_INPUT)
mp_input_update_opts(mpctx->input);
- if (init || opt_ptr == &opts->ipc_path) {
+ if (init || opt_ptr == &opts->ipc_path || opt_ptr == &opts->ipc_client) {
mp_uninit_ipc(mpctx->ipc_ctx);
mpctx->ipc_ctx = mp_init_ipc(mpctx->clients, mpctx->global);
}