History

ipc: raise json nesting limit

Fixes the issue pointed out in #4394.

wm4 committed 9 years ago

Commit 9f268d71 parent de225e31 file · +2 −2Browse files

Unified · Split

input/ipc.c+2−2
@@ -205,9 +205,9 @@ static char *json_execute_command(struct mpv_handle *client, void *ta_parent, · 204 unmodified lines
205205 mpv_node reply_node = {.format = MPV_FORMAT_NODE_MAP, .u.list = NULL};
206206 mpv_node *reqid_node = NULL;
207207
208− rc = json_parse(ta_parent, &msg_node, &src, 3);
208+ rc = json_parse(ta_parent, &msg_node, &src, 50);
209209 if (rc < 0) {
210− mp_err(log, "malformed JSON received\n");
210+ mp_err(log, "malformed JSON received: '%s'\n", src);
211211 rc = MPV_ERROR_INVALID_PARAMETER;
212212 goto error;
213213 }

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t