diff options
author | wm4 <wm4@nowhere> | 2014-10-10 22:58:28 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2014-10-10 22:58:28 +0200 |
commit | c9f45ea93e470159b1bd4c4ddbd5c2c05149d76e (patch) | |
tree | 7bc1da5d3c1cb792f6e3955d732110492e245a7c /player | |
parent | 63903c27bd9947b94ef83dc350568b5797af5281 (diff) | |
download | mpv-c9f45ea93e470159b1bd4c4ddbd5c2c05149d76e.tar.bz2 mpv-c9f45ea93e470159b1bd4c4ddbd5c2c05149d76e.tar.xz |
input: use mpv_node parser for char** command parsers
Minor simplification, also drops some useless stuff.
Diffstat (limited to 'player')
-rw-r--r-- | player/client.c | 5 |
1 files changed, 2 insertions, 3 deletions
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, "<client>"); + struct mp_cmd *cmd = mp_input_parse_cmd_strv(ctx->log, args); if (!cmd) return MPV_ERROR_INVALID_PARAMETER; |