diff options
author | Dudemanguy <random342@airmail.cc> | 2024-03-01 17:38:35 -0600 |
---|---|---|
committer | Dudemanguy <random342@airmail.cc> | 2024-03-21 14:48:53 +0000 |
commit | 91489c946689763c36e4d720d6048037252818f7 (patch) | |
tree | d6dcbf5aa8d09f8ff6c572b52ff56114704bcf0e /options | |
parent | 46a35e2edc1905a9cbe4674f454ef056a6d1eef4 (diff) | |
download | mpv-91489c946689763c36e4d720d6048037252818f7.tar.bz2 mpv-91489c946689763c36e4d720d6048037252818f7.tar.xz |
options: add --input-commands option
Basically a simple way to perform any command/property action from the
command line. This takes the exact same syntax as input.conf but not
including the key naturally. Potentially useful for weird properties
that don't map well to options (like ao-volume). Fixes #12353.
Diffstat (limited to 'options')
-rw-r--r-- | options/options.c | 1 | ||||
-rw-r--r-- | options/options.h | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/options/options.c b/options/options.c index 80e0f6cc28..8640ecb27f 100644 --- a/options/options.c +++ b/options/options.c @@ -853,6 +853,7 @@ static const m_option_t mp_opts[] = { {"idle", OPT_CHOICE(player_idle_mode, {"no", 0}, {"once", 1}, {"yes", 2})}, + {"input-commands", OPT_STRINGLIST(input_commands)}, {"input-terminal", OPT_BOOL(consolecontrols), .flags = UPDATE_TERM}, {"input-ipc-server", OPT_STRING(ipc_path), .flags = M_OPT_FILE}, diff --git a/options/options.h b/options/options.h index 4d3d988789..69a50b3350 100644 --- a/options/options.h +++ b/options/options.h @@ -256,6 +256,7 @@ typedef struct MPOpts { char *osd_status_msg; char *osd_msg[3]; int player_idle_mode; + char **input_commands; bool consolecontrols; int playlist_pos; struct m_rel_time play_start; |