Fixes the issue pointed out in #4394.
Showing the changes to input (1 of 1 file). Show all
Unified · Split
| @@ -205,9 +205,9 @@ static char *json_execute_command(struct mpv_handle *client, void *ta_parent, · 204 unmodified lines | ||
| 205 | 205 | mpv_node reply_node = {.format = MPV_FORMAT_NODE_MAP, .u.list = NULL}; |
| 206 | 206 | mpv_node *reqid_node = NULL; |
| 207 | 207 | |
| 208 | − rc = json_parse(ta_parent, &msg_node, &src, 3); | |
| 208 | + rc = json_parse(ta_parent, &msg_node, &src, 50); | |
| 209 | 209 | if (rc < 0) { |
| 210 | − mp_err(log, "malformed JSON received\n"); | |
| 210 | + mp_err(log, "malformed JSON received: '%s'\n", src); | |
| 211 | 211 | rc = MPV_ERROR_INVALID_PARAMETER; |
| 212 | 212 | goto error; |
| 213 | 213 | } |