diff options
author | wm4 <wm4@nowhere> | 2018-05-12 15:36:43 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2018-05-24 19:56:34 +0200 |
commit | 548ef07864f3e1a40f731b2643f037435ceae46d (patch) | |
tree | e40245dc8f8b323b00632fc9c4bad9d8f5f131d9 /player/command.c | |
parent | d9bc97bda6e4750af2fbbfcb51ddb6b2c04c277b (diff) | |
download | mpv-548ef07864f3e1a40f731b2643f037435ceae46d.tar.bz2 mpv-548ef07864f3e1a40f731b2643f037435ceae46d.tar.xz |
lua: reimplement mp.subprocess() by invoking the new subprocess command
We keep mp.subprocess() with roughly the same semantics for
compatibility with scripts (including the internal ytdl script).
Seems to work with rhe ytdl wrapper. Not tested further.
Diffstat (limited to 'player/command.c')
-rw-r--r-- | player/command.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/player/command.c b/player/command.c index fe6c3fd2ca..f2d7eedd5f 100644 --- a/player/command.c +++ b/player/command.c @@ -5680,7 +5680,7 @@ static void cmd_subprocess(void *p) void *tmp = talloc_new(NULL); struct subprocess_cb_ctx ctx = { - .log = mpctx->log, + .log = mp_log_new(tmp, mpctx->log, cmd->cmd->sender), .talloc_ctx = tmp, .max_size = cmd->args[2].v.i, .capture = {0, cmd->args[3].v.i, cmd->args[4].v.i}, |