summaryrefslogtreecommitdiffstats
path: root/player/client.c
diff options
context:
space:
mode:
Diffstat (limited to 'player/client.c')
-rw-r--r--player/client.c5
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;