1
0
mirror of https://github.com/mpv-player/mpv synced 2025-03-25 04:38:01 +00:00
mpv/options
wm4 314a4a572b command: disable edition switching if there are no editions
Commit 8d965a1bfb changed option/property min/max handling. As a
consequence, ranges that contain only 1 or 0 elements are not possible
anymore. Normally that's fine, because it makes no sense to have an
option that has only one or none allowed value (statically).

But edition switching used some sort of mechanism where the property can
return a different, dynamically decided range at runtime. That meant
that if there were <2 editions, edition switching with the "cycle"
command would always pick the same value. But with the recent commit,
this changed to having "no range set" and would cycle through all
integer values.

Work this around with a simple change. Now, edition switching on a file
without editions shows "edition: auto" instead of "edition: 0", which
may appear odd. But the former is the --edition default value, and
previous mpv versions rendered the edition property like this when not
using switching.

(Who the fuck uses editions?)
2020-03-14 01:32:27 +01:00
..
m_config_core.c options: more pushing code around 2020-03-13 16:50:27 +01:00
m_config_core.h options: more pushing code around 2020-03-13 16:50:27 +01:00
m_config_frontend.c options: change how option range min/max is handled 2020-03-13 17:34:46 +01:00
m_config_frontend.h options: more pushing code around 2020-03-13 16:50:27 +01:00
m_config.h options: split m_config.c/h 2020-03-13 16:50:27 +01:00
m_option.c options: change how option range min/max is handled 2020-03-13 17:34:46 +01:00
m_option.h options: change how option range min/max is handled 2020-03-13 17:34:46 +01:00
m_property.c command: disable edition switching if there are no editions 2020-03-14 01:32:27 +01:00
m_property.h
options.c options: change how option range min/max is handled 2020-03-13 17:34:46 +01:00
options.h options: make decoder options local to decoder wrapper 2020-03-01 00:28:09 +01:00
parse_commandline.c options: split m_config.c/h 2020-03-13 16:50:27 +01:00
parse_commandline.h
parse_configfile.c
parse_configfile.h options: split m_config.c/h 2020-03-13 16:50:27 +01:00
path.c path: add mp_path_is_absolute() 2020-02-06 14:14:35 +01:00
path.h path: add mp_path_is_absolute() 2020-02-06 14:14:35 +01:00