[Mplayer-cvslog] CVS: main mplayer.c,1.785,1.786

Sascha Sommer CVS syncmail at mplayerhq.hu
Wed Sep 15 13:26:47 CEST 2004


CVS change done by Sascha Sommer CVS

Update of /cvsroot/mplayer/main
In directory mail:/var2/tmp/cvs-serv9653

Modified Files:
	mplayer.c 
Log Message:
fix ineffectual video equalizer command line options, patch by kiriuja <mplayer-bugs at en-directo.net>, closes #37, some more variable docu by me

Index: mplayer.c
===================================================================
RCS file: /cvsroot/mplayer/main/mplayer.c,v
retrieving revision 1.785
retrieving revision 1.786
diff -u -r1.785 -r1.786
--- mplayer.c	15 Sep 2004 09:45:34 -0000	1.785
+++ mplayer.c	15 Sep 2004 11:26:45 -0000	1.786
@@ -318,12 +318,11 @@
 
 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 @@
 // ========== 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);




More information about the MPlayer-cvslog mailing list