mirror of
https://github.com/mpv-player/mpv.git
synced 2026-05-07 20:02:49 +00:00
80582efca5
Some commands have named arguments named "name", which conflict with the "name" entry used to specify command name in mpv_command_node, so they cannot be used with mpv_command_node. These commands include: set, del, change-list, add, cycle, multiply, enable-section, disable-section, define-section, script-binding, keybind, keypress, keydown, keyup, apply-profile. This makes mpv_command_node accept command name as key "_name", so "name" can be used to specify command arguments. For compatibility, if "_name" entry does not exist, then "name" is used as fallback.