summaryrefslogtreecommitdiffstats
path: root/player/command.c
diff options
context:
space:
mode:
Diffstat (limited to 'player/command.c')
-rw-r--r--player/command.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/player/command.c b/player/command.c
index d791838ef8..f275fcc489 100644
--- a/player/command.c
+++ b/player/command.c
@@ -5514,6 +5514,14 @@ int run_command(struct MPContext *mpctx, struct mp_cmd *cmd, struct mpv_node *re
break;
}
+ case MP_CMD_APPLY_PROFILE: {
+ char *profile = cmd->args[0].v.s;
+ int flags = mpctx->initialized ? M_SETOPT_RUNTIME : 0;
+ if (m_config_set_profile(mpctx->mconfig, profile, flags) < 0)
+ return -1;
+ break;
+ }
+
default:
MP_VERBOSE(mpctx, "Received unknown cmd %s\n", cmd->name);
return -1;