From c9f45ea93e470159b1bd4c4ddbd5c2c05149d76e Mon Sep 17 00:00:00 2001 From: wm4 Date: Fri, 10 Oct 2014 22:58:28 +0200 Subject: input: use mpv_node parser for char** command parsers Minor simplification, also drops some useless stuff. --- player/client.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'player/client.c') diff --git a/player/client.c b/player/client.c index c0b73977d3..d1bdec001e 100644 --- a/player/client.c +++ b/player/client.c @@ -877,8 +877,7 @@ static int run_client_command(mpv_handle *ctx, struct mp_cmd *cmd) int mpv_command(mpv_handle *ctx, const char **args) { - return run_client_command(ctx, mp_input_parse_cmd_strv(ctx->log, 0, args, - ctx->name)); + return run_client_command(ctx, mp_input_parse_cmd_strv(ctx->log, args)); } int mpv_command_string(mpv_handle *ctx, const char *args) @@ -892,7 +891,7 @@ int mpv_command_async(mpv_handle *ctx, uint64_t ud, const char **args) if (!ctx->mpctx->initialized) return MPV_ERROR_UNINITIALIZED; - struct mp_cmd *cmd = mp_input_parse_cmd_strv(ctx->log, 0, args, ""); + struct mp_cmd *cmd = mp_input_parse_cmd_strv(ctx->log, args); if (!cmd) return MPV_ERROR_INVALID_PARAMETER; -- cgit v1.2.3