summaryrefslogtreecommitdiffstats
path: root/libvo
diff options
context:
space:
mode:
authorarpi <arpi@b3059339-0415-0410-9bf9-f77b7e298cf2>2002-07-25 22:54:03 +0000
committerarpi <arpi@b3059339-0415-0410-9bf9-f77b7e298cf2>2002-07-25 22:54:03 +0000
commit9751597015d53d2559273bed6612a95c2bfc967b (patch)
tree342c35898c78fe3e986c3caa6fb24a1f790abb2e /libvo
parent08cf98b3f221c27d944f194aeb9655856f4493e1 (diff)
downloadmpv-9751597015d53d2559273bed6612a95c2bfc967b.tar.bz2
mpv-9751597015d53d2559273bed6612a95c2bfc967b.tar.xz
10l bug fixed (info.cap |= -> = )
some cosmetics git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@6807 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libvo')
-rw-r--r--libvo/vosub_vidix.c14
1 files changed, 8 insertions, 6 deletions
diff --git a/libvo/vosub_vidix.c b/libvo/vosub_vidix.c
index efbdff9788..47589f2584 100644
--- a/libvo/vosub_vidix.c
+++ b/libvo/vosub_vidix.c
@@ -695,26 +695,28 @@ uint32_t vidix_control(uint32_t request, void *data, ...)
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 @@ uint32_t vidix_control(uint32_t request, void *data, ...)
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 */