1
0
mirror of https://github.com/mpv-player/mpv synced 2024-12-28 01:52:19 +00:00
mpv/TOOLS
wm4 77f309c94f vo_gpu, options: don't return NaN through API
Internally, vo_gpu uses NaN for some options to indicate a default value
that is different depending on the context (e.g. different scalers).
There are 2 problems with this:

1. you couldn't reset the options to their defaults
2. NaN is a damn mess and shouldn't be part of the API

The option parser already rejected NaN explicitly, which is why 1.
didn't work. Regarding 2., JSON might be a good example, and actually
caused a bug report.

Fix this by mapping NaN to the special value "default". I think I'd
prefer other mechanisms (maybe just having every scaler expose separate
options?), but for now this will do. See you in a future commit, which
painfully deprecates this and replaces it with something else.

I refrained from using "no" (my favorite magic value for "unset" etc.)
because then I'd have e.g. make --no-scale-param1 work, which in
addition to a lot of effort looks dumb and nobody will use it.

Here's also an apology for the shitty added test script.

Fixes: #6691
2019-10-25 00:25:05 +02:00
..
lua vo_gpu, options: don't return NaN through API 2019-10-25 00:25:05 +02:00
mpv-osd-symbols.sfdir osd-font: make volume muted glyph slightly thicker 2017-04-22 18:03:16 +01:00
osxbundle/mpv.app/Contents osx: fix bundle on macOS High Sierra (10.13) 2017-10-03 11:30:56 +02:00
__init__.py build: use matroska.py & file2string.py as python modules 2017-01-05 11:25:18 +01:00
appveyor-build.sh appveyor: remove broken packages, install libplacebo 2019-07-03 17:30:50 +03:00
appveyor-install.sh appveyor: remove broken packages, install libplacebo 2019-07-03 17:30:50 +03:00
dylib-unhell.py osxbundle: remove rpath definitions towards dev tools 2019-09-22 17:07:51 +03:00
file2string.py TOOLS: change license of some scripts involved in build to LGPL 2017-06-24 10:08:33 +02:00
gen-osd-font.sh Add script to generate otf from sfdir using fontforge 2017-04-20 17:40:45 +01:00
idet.sh Use setfield, not --field-dominance. See #2297. 2015-09-09 02:57:44 +02:00
matroska.py TOOLS/matroska.py: ignore some unused elements 2018-04-29 02:21:32 +03:00
mpv_identify.sh mpv_identify: replace deprecated fps property 2017-06-25 14:24:49 +01:00
osxbundle.py osxbundle: print the output of the dylib-unhell call 2019-07-21 18:13:07 +03:00
stats-conv.py TOOLS/stats-conv.py: use different colors for symbols too 2016-10-06 19:42:18 +02:00
travis-deps travis: stop excluding ffmpeg-git 2017-12-22 21:49:21 +01:00
travis-rebuild-website TOOLS/travis-rebuild-website: update condition after docker transition 2019-07-30 20:12:33 +01:00
umpv TOOLS/umpv: fix typo in docstring 2015-04-17 13:37:47 +02:00
uncrustify.cfg