diff options
author | wm4 <wm4@nowhere> | 2020-05-15 16:16:48 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2020-05-15 16:37:41 +0200 |
commit | 1c66e03ae5e995b567cb252a853927f0de1dbba5 (patch) | |
tree | 0ded69d8754be430a786093f3012c879301b79aa | |
parent | 60f8cd4072ff244618f2c23dd12d6d8b2a5bf5f2 (diff) | |
download | mpv-1c66e03ae5e995b567cb252a853927f0de1dbba5.tar.bz2 mpv-1c66e03ae5e995b567cb252a853927f0de1dbba5.tar.xz |
scripting: correct passing FDs
For external scripts/processes which use IPC. The mistake didn't really
matter.
-rw-r--r-- | player/scripting.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/player/scripting.c b/player/scripting.c index 840ff3e64a..bb4c93b60e 100644 --- a/player/scripting.c +++ b/player/scripting.c @@ -351,7 +351,7 @@ static int load_run(struct mp_script_args *args) {.fd = 3, .src_fd = fds[0], }, {.fd = 4, .src_fd = fds[1], }, }, - .num_fds = fds[1] >= 0 ? 4 : 5, + .num_fds = fds[1] >= 0 ? 5 : 4, .detach = true, }; struct mp_subprocess_result res; |