mirror of
https://github.com/mpv-player/mpv.git
synced 2025-12-26 21:00:21 +00:00
command: change the default action for rescan_external_files
Now the rescan_external_files command will by default reselect the audio and subtitle streams. This should be more intuitive. Client API users and Lua scripts might break, but can be fixed in a backward-compatible way by setting the mode explicitly.
This commit is contained in:
@@ -210,7 +210,7 @@ const struct mp_cmd_def mp_cmds[] = {
|
||||
{ MP_CMD_AUDIO_RELOAD, "audio_reload", { OARG_INT(-1) } },
|
||||
|
||||
{ MP_CMD_RESCAN_EXTERNAL_FILES, "rescan_external_files", {
|
||||
OARG_CHOICE(0, ({"keep-selection", 0},
|
||||
OARG_CHOICE(1, ({"keep-selection", 0},
|
||||
{"reselect", 1})),
|
||||
}},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user