summaryrefslogtreecommitdiffstats
path: root/options
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2016-09-01 20:57:33 +0200
committerwm4 <wm4@nowhere>2016-09-01 20:57:33 +0200
commit1393d79417278dfa63a7a5c767093eaf3504edce (patch)
tree3a33c48248a5a32daecbe8f2a8f98c7c7c010fca /options
parent192a7344d91de24d486effba73383b1c2790acc2 (diff)
downloadmpv-1393d79417278dfa63a7a5c767093eaf3504edce.tar.bz2
mpv-1393d79417278dfa63a7a5c767093eaf3504edce.tar.xz
command: fix or document some property/option consistency issues
Make some existing properties behave more like options. This mostly means they don't deny access if the associated component is not active, but redirects to the option. One kind of fishy change is that we apply --brightness etc. only if they're not set to the default value. This won't necessarily work with --vo=xv, but affects only cases where 1. the Xv adapter has been changed to non-defaults, and 2. the user tries to reset them with mpv by passing e.g. --brightness=0. We don't care about Xv, and the noted use-case is dumb, so this change is acceptable.
Diffstat (limited to 'options')
-rw-r--r--options/options.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/options/options.c b/options/options.c
index 2aff813a25..9c3ec0b776 100644
--- a/options/options.c
+++ b/options/options.c
@@ -746,11 +746,11 @@ const struct MPOpts mp_default_opts = {
.heartbeat_interval = 30.0,
.stop_screensaver = 1,
.cursor_autohide_delay = 1000,
- .gamma_gamma = 1000,
- .gamma_brightness = 1000,
- .gamma_contrast = 1000,
- .gamma_saturation = 1000,
- .gamma_hue = 1000,
+ .gamma_gamma = 0,
+ .gamma_brightness = 0,
+ .gamma_contrast = 0,
+ .gamma_saturation = 0,
+ .gamma_hue = 0,
.video_osd = 1,
.osd_level = 1,
.osd_duration = 1000,