diff options
-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; |