1
0
mirror of https://github.com/mpv-player/mpv synced 2024-12-25 08:12:17 +00:00
mpv/options
wm4 2415b69572 player: more option/property consistency fixes
Some properties had a different type from their equivalent options (such
as mute, volume, deinterlace, edition). This wasn't really sane, as raw
option values should be always within their bounds. On the other hand,
these properties use a different type to reflect runtime limits (such as
range of available editions), or simply to improve the "UI" (you don't
want to cycle throuhg the completely useless "auto" value when cycling
the "mute" property).

Handle this by making them always return the option type, but also
allowing them to provide a "constricted" type, which is used for UI
purposes. All M_PROPERTY_GET_CONSTRICTED_TYPE changes are related to
this.

One consequence is that you can set the volume property to arbitrary
high values just like with the --volume option, but using the "add"
command it still restricts it to the --volume-max range.

Also deprecate --chapter, as it is grossly incompatible to the chapter
property. We pondered renaming it to --chapters, or introducing a more
powerful --range option, but concluded that --start --end is actually
enough.

These changes appear to take care of the last gross property/option
incompatibilities, although there might still be a few lurking.
2016-09-18 16:08:21 +02:00
..
m_config.c player: more option/property consistency fixes 2016-09-18 16:08:21 +02:00
m_config.h player: more option/property consistency fixes 2016-09-18 16:08:21 +02:00
m_option.c options: simplify M_OPT_EXIT 2016-09-17 18:07:40 +02:00
m_option.h options: simplify M_OPT_EXIT 2016-09-17 18:07:40 +02:00
m_property.c player: more option/property consistency fixes 2016-09-18 16:08:21 +02:00
m_property.h player: more option/property consistency fixes 2016-09-18 16:08:21 +02:00
options.c player: more option/property consistency fixes 2016-09-18 16:08:21 +02:00
options.h stream_dvd, stream_dvdnav: remove weird option parsing stuff 2016-09-08 21:46:48 +02:00
parse_commandline.c options: simplify M_OPT_EXIT 2016-09-17 18:07:40 +02:00
parse_commandline.h Update license headers 2015-04-13 12:10:01 +02:00
parse_configfile.c config: allow profile forward-references in default profile 2016-09-02 21:21:47 +02:00
parse_configfile.h Update license headers 2015-04-13 12:10:01 +02:00
path.c mpv_talloc.h: rename from talloc.h 2016-01-11 21:05:55 +01:00
path.h player: make watch later/resume work when "playing" directories 2016-01-06 22:40:55 +01:00