summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam Jackson <ajax@redhat.com>2008-03-19 16:42:18 -0400
committerAdam Jackson <ajax@redhat.com>2008-03-19 16:42:18 -0400
commitb0dad860b9bbe5db7ae7cf5ef1a8eacb3cb5db05 (patch)
treef2b0cbae517532ef7cdf5bd1af65ef8d89403c6c
parentedfeb249a80e52fb67c075e1f5e07d420cccb2b5 (diff)
Fix ioctl() outparameter on LP64 systems.
-rw-r--r--src/v4l.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/v4l.c b/src/v4l.c
index c7b3d38..b827f80 100644
--- a/src/v4l.c
+++ b/src/v4l.c
@@ -592,7 +592,8 @@ V4lSetPortAttribute(ScrnInfoPtr pScrn,
if (-1 == ioctl(V4L_FD,VIDIOCSAUDIO,&pPPriv->audio))
perror("ioctl VIDIOCSAUDIO");
} else if (attribute == xvFreq) {
- if (-1 == ioctl(V4L_FD,VIDIOCSFREQ,&value))
+ unsigned long freq = value;
+ if (-1 == ioctl(V4L_FD,VIDIOCSFREQ,&freq))
perror("ioctl VIDIOCSFREQ");
} else if (0 != pPPriv->yuv_format &&
pPPriv->myfmt->setAttribute) {
@@ -644,7 +645,9 @@ V4lGetPortAttribute(ScrnInfoPtr pScrn,
ret = BadValue;
}
} else if (attribute == xvFreq) {
- ioctl(V4L_FD,VIDIOCGFREQ,value);
+ unsigned long freq;
+ ioctl(V4L_FD,VIDIOCGFREQ,&freq);
+ *value = freq;
} else if (0 != pPPriv->yuv_format &&
pPPriv->myfmt->getAttribute) {
/* not mine -> pass to yuv scaler driver */