changeset 6806:994d3729b0d1

10l bug fixed (info.cap |= -> = ) some cosmetics
author arpi
date Thu, 25 Jul 2002 22:54:03 +0000
parents 963f266ce7cc
children ae2f3cdcb462
files libvo/vosub_vidix.c
diffstat 1 files changed, 8 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/libvo/vosub_vidix.c	Thu Jul 25 22:52:51 2002 +0000
+++ b/libvo/vosub_vidix.c	Thu Jul 25 22:54:03 2002 +0000
@@ -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 */