[Mplayer-cvslog] CVS: main/libvo vosub_vidix.c,1.50,1.51
Arpi of Ize
arpi at mplayerhq.hu
Fri Jul 26 00:54:06 CEST 2002
Update of /cvsroot/mplayer/main/libvo
In directory mail:/var/tmp.root/cvs-serv20374
Modified Files:
vosub_vidix.c
Log Message:
10l bug fixed (info.cap |= -> = )
some cosmetics
Index: vosub_vidix.c
===================================================================
RCS file: /cvsroot/mplayer/main/libvo/vosub_vidix.c,v
retrieving revision 1.50
retrieving revision 1.51
diff -u -r1.50 -r1.51
--- vosub_vidix.c 25 Jul 2002 13:09:16 -0000 1.50
+++ vosub_vidix.c 25 Jul 2002 22:54:03 -0000 1.51
@@ -695,26 +695,28 @@
value = va_arg(ap, int);
va_end(ap);
+// printf("vidix seteq %s -> %d \n",data,value);
+
/* vidix eq ranges are -1000..1000 */
if (!strcasecmp(data, "brightness"))
{
info.brightness = value*10;
- info.cap |= VEQ_CAP_BRIGHTNESS;
+ info.cap = VEQ_CAP_BRIGHTNESS;
}
else if (!strcasecmp(data, "contrast"))
{
info.contrast = value*10;
- info.cap |= VEQ_CAP_CONTRAST;
+ info.cap = VEQ_CAP_CONTRAST;
}
else if (!strcasecmp(data, "saturation"))
{
info.saturation = value*10;
- info.cap |= VEQ_CAP_SATURATION;
+ info.cap = VEQ_CAP_SATURATION;
}
else if (!strcasecmp(data, "hue"))
{
info.hue = value*10;
- info.cap |= VEQ_CAP_HUE;
+ info.cap = VEQ_CAP_HUE;
}
if (vdlPlaybackSetEq(vidix_handler, &info) == 0)
@@ -728,11 +730,11 @@
vidix_video_eq_t info;
if(!video_on) return VO_FALSE;
- if (vdlPlaybackSetEq(vidix_handler, &info) != 0)
+ if (vdlPlaybackGetEq(vidix_handler, &info) != 0)
return VO_FALSE;
va_start(ap, data);
- value = va_arg(ap, int);
+ value = va_arg(ap, int*);
va_end(ap);
/* vidix eq ranges are -1000..1000 */
More information about the MPlayer-cvslog
mailing list