diff options
author | wm4 <wm4@nowhere> | 2016-09-17 21:01:59 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2016-09-17 21:01:59 +0200 |
commit | cb604d5412f0eb87d030d75f5ca44370fdfa26f6 (patch) | |
tree | 2a5314e264bf62dcf33d0158cbd6e9af880b451a /input | |
parent | a3e8ff624c8adf3b18dddea0fdede7b7fa8c4eb1 (diff) | |
download | mpv-cb604d5412f0eb87d030d75f5ca44370fdfa26f6.tar.bz2 mpv-cb604d5412f0eb87d030d75f5ca44370fdfa26f6.tar.xz |
command: add an apply-profile command
This will actually update all associated options (which is trivial now
with the recent changes).
Diffstat (limited to 'input')
-rw-r--r-- | input/cmd_list.c | 2 | ||||
-rw-r--r-- | input/cmd_list.h | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/input/cmd_list.c b/input/cmd_list.c index bc3c622075..f6db9cbba8 100644 --- a/input/cmd_list.c +++ b/input/cmd_list.c @@ -224,6 +224,8 @@ const struct mp_cmd_def mp_cmds[] = { {"reselect", 1})), }}, + { MP_CMD_APPLY_PROFILE, "apply-profile", {ARG_STRING } }, + {0} }; diff --git a/input/cmd_list.h b/input/cmd_list.h index e1018c38aa..e0fd8fa2de 100644 --- a/input/cmd_list.h +++ b/input/cmd_list.h @@ -114,6 +114,8 @@ enum mp_command_type { MP_CMD_RESCAN_EXTERNAL_FILES, + MP_CMD_APPLY_PROFILE, + // Internal MP_CMD_COMMAND_LIST, // list of sub-commands in args[0].v.p }; |