diff options
Diffstat (limited to 'input/ipc.c')
-rw-r--r-- | input/ipc.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/input/ipc.c b/input/ipc.c index 34a10bbb00..ea69fb7c24 100644 --- a/input/ipc.c +++ b/input/ipc.c @@ -15,8 +15,6 @@ * License along with mpv. If not, see <http://www.gnu.org/licenses/>. */ -#include "config.h" - #include "common/msg.h" #include "input/input.h" #include "misc/json.h" @@ -128,7 +126,7 @@ static char *json_execute_command(struct mpv_handle *client, void *ta_parent, bool async = false; bool send_reply = true; - rc = json_parse(ta_parent, &msg_node, &src, 50); + rc = json_parse(ta_parent, &msg_node, &src, MAX_JSON_DEPTH); if (rc < 0) { mp_err(log, "malformed JSON received: '%s'\n", src); rc = MPV_ERROR_INVALID_PARAMETER; |