summaryrefslogtreecommitdiffstats
path: root/player/command.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2015-04-20 23:00:12 +0200
committerwm4 <wm4@nowhere>2015-04-20 23:00:12 +0200
commitf13266014f328fed9eda41047f0a1700348ba923 (patch)
treec96231ccdc0f363933a2ed47d8a0a8bdca70eb83 /player/command.c
parentdebf57bb0d5896fc68e6acc293112eaaf0d3f2d4 (diff)
downloadmpv-f13266014f328fed9eda41047f0a1700348ba923.tar.bz2
mpv-f13266014f328fed9eda41047f0a1700348ba923.tar.xz
client API: add glue for making full use of mpv_command_node()
Until now, the return value was always MPV_FORMAT_NONE. Now a command can actually set it. This will be used in one of the following commits.
Diffstat (limited to 'player/command.c')
-rw-r--r--player/command.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/player/command.c b/player/command.c
index f5621ceb01..376f2b6bed 100644
--- a/player/command.c
+++ b/player/command.c
@@ -4040,7 +4040,7 @@ static bool check_property_autorepeat(char *property, struct MPContext *mpctx)
return true;
}
-int run_command(MPContext *mpctx, mp_cmd_t *cmd)
+int run_command(struct MPContext *mpctx, struct mp_cmd *cmd, struct mpv_node *res)
{
struct command_ctx *cmdctx = mpctx->command_ctx;
struct MPOpts *opts = mpctx->opts;
@@ -4692,7 +4692,7 @@ int run_command(MPContext *mpctx, mp_cmd_t *cmd)
case MP_CMD_COMMAND_LIST: {
for (struct mp_cmd *sub = cmd->args[0].v.p; sub; sub = sub->queue_next)
- run_command(mpctx, sub);
+ run_command(mpctx, sub, NULL);
break;
}