diff options
author | wm4 <wm4@nowhere> | 2017-05-03 20:47:11 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2017-05-03 20:47:11 +0200 |
commit | 9f268d7613112bb090790d4e50c03bd3391efec7 (patch) | |
tree | b2dd60b06ed693a5c760c258510911335540941b /input | |
parent | de225e3a6a471525fd2efebd9fbbcaf6849127b9 (diff) |
ipc: raise json nesting limit
Fixes the issue pointed out in #4394.
Diffstat (limited to 'input')
-rw-r--r-- | input/ipc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/input/ipc.c b/input/ipc.c index f15f24d229..fc1e11b981 100644 --- a/input/ipc.c +++ b/input/ipc.c @@ -205,9 +205,9 @@ static char *json_execute_command(struct mpv_handle *client, void *ta_parent, mpv_node reply_node = {.format = MPV_FORMAT_NODE_MAP, .u.list = NULL}; mpv_node *reqid_node = NULL; - rc = json_parse(ta_parent, &msg_node, &src, 3); + rc = json_parse(ta_parent, &msg_node, &src, 50); if (rc < 0) { - mp_err(log, "malformed JSON received\n"); + mp_err(log, "malformed JSON received: '%s'\n", src); rc = MPV_ERROR_INVALID_PARAMETER; goto error; } |