summaryrefslogtreecommitdiffstats
path: root/mplayer.c
diff options
context:
space:
mode:
authorfaust3 <faust3@b3059339-0415-0410-9bf9-f77b7e298cf2>2004-09-15 11:26:45 +0000
committerfaust3 <faust3@b3059339-0415-0410-9bf9-f77b7e298cf2>2004-09-15 11:26:45 +0000
commitc2c997fda1fcf5022370970ae6114535cb698c33 (patch)
treeb7708c75f87a8c5e31d1d5589c8a31b39a0fe109 /mplayer.c
parentb6ec858471a8b05e3a82edeae82f754077eee89b (diff)
downloadmpv-c2c997fda1fcf5022370970ae6114535cb698c33.tar.bz2
mpv-c2c997fda1fcf5022370970ae6114535cb698c33.tar.xz
fix ineffectual video equalizer command line options, patch by kiriuja <mplayer-bugs at en-directo.net>, closes #37, some more variable docu by me
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@13342 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'mplayer.c')
-rw-r--r--mplayer.c24
1 files changed, 5 insertions, 19 deletions
diff --git a/mplayer.c b/mplayer.c
index 32dbd94e32..2c0a00309a 100644
--- a/mplayer.c
+++ b/mplayer.c
@@ -318,12 +318,11 @@ static sh_video_t *sh_video=NULL;
char* current_module=NULL; // for debugging
-// also modified by Gui/mplayer/gtk/eq.c:
-int vo_gamma_gamma = 1000;
-int vo_gamma_brightness = 1000;
-int vo_gamma_contrast = 1000;
-int vo_gamma_saturation = 1000;
-int vo_gamma_hue = 1000;
+extern int vo_gamma_gamma;
+extern int vo_gamma_brightness;
+extern int vo_gamma_contrast;
+extern int vo_gamma_saturation;
+extern int vo_gamma_hue;
// ---
@@ -1755,19 +1754,6 @@ if(auto_quality>0){
// ========== Init display (sh_video->disp_w*sh_video->disp_h/out_fmt) ============
current_module="init_vo";
- if (sh_video)
- {
- if (vo_gamma_gamma != 1000)
- set_video_colors (sh_video, "gamma", vo_gamma_gamma);
- if (vo_gamma_brightness != 1000)
- set_video_colors(sh_video, "brightness", vo_gamma_brightness);
- if (vo_gamma_contrast != 1000)
- set_video_colors(sh_video, "contrast", vo_gamma_contrast);
- if (vo_gamma_saturation != 1000)
- set_video_colors(sh_video, "saturation", vo_gamma_saturation);
- if (vo_gamma_hue != 1000)
- set_video_colors(sh_video, "hue", vo_gamma_hue);
- }
if(vo_flags & 0x08 && vo_spudec)
spudec_set_hw_spu(vo_spudec,video_out);