[MPlayer-cvslog] CVS: main mplayer.c,1.869,1.870

Reimar Döffinger CVS syncmail at mplayerhq.hu
Thu Sep 15 01:21:46 CEST 2005


CVS change done by Reimar Döffinger CVS

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

Modified Files:
	mplayer.c 
Log Message:
consistency fix: OSD bar for gamma changes should only appear when gamma
changing gamma is supported (like all other equalizer controls).


Index: mplayer.c
===================================================================
RCS file: /cvsroot/mplayer/main/mplayer.c,v
retrieving revision 1.869
retrieving revision 1.870
diff -u -r1.869 -r1.870
--- mplayer.c	11 Sep 2005 06:42:32 -0000	1.869
+++ mplayer.c	14 Sep 2005 23:21:44 -0000	1.870
@@ -3120,7 +3120,7 @@
         vo_gamma_gamma = 100;
       else if (vo_gamma_gamma < -100)
         vo_gamma_gamma = -100;
-      set_video_colors(sh_video, "gamma", vo_gamma_gamma);
+      if (set_video_colors(sh_video, "gamma", vo_gamma_gamma)){
 #ifdef USE_OSD
        if(osd_level){
 	 osd_visible=sh_video->fps; // 1 sec
@@ -3129,6 +3129,7 @@
 	 vo_osd_changed(OSDTYPE_PROGBAR);
        }
 #endif // USE_OSD
+     }
     } break;
     case MP_CMD_BRIGHTNESS :  {
       int v = cmd->args[0].v.i, abs = cmd->args[1].v.i;




More information about the MPlayer-cvslog mailing list