diff options
author | wm4 <wm4@nowhere> | 2013-08-20 16:23:44 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2013-08-20 16:23:44 +0200 |
commit | e49abd2fa20a20eb57cc218e7be5c32f4bc6c1f4 (patch) | |
tree | 9145cea0260eca72965bf3050423e10a1e6b99eb /video/decode | |
parent | d69b39512ded2f4d02249c811785e307962034e5 (diff) | |
download | mpv-e49abd2fa20a20eb57cc218e7be5c32f4bc6c1f4.tar.bz2 mpv-e49abd2fa20a20eb57cc218e7be5c32f4bc6c1f4.tar.xz |
command: simplify video brightness/gamma/etc. handling a bit
We don't need to store the offsets of the options corresponding to the
properties, because the option-property bridge knows about this already.
The check against 1000 was for the case if e.g. the --brightness option
is not used. Always overwrite the option value instead, both when
querying and setting the property. (This is needed to make the settings
persistent even if vf_eq is used and the video chain is reinitialized.)
This commit assumes that VFCTRL_SET_EQUALIZER is always paired with
VFCTRL_GET_EQUALIZER (likewise for VOCTRL), which is the case.
Diffstat (limited to 'video/decode')
0 files changed, 0 insertions, 0 deletions