diff options
author | Adam Jackson <ajax@redhat.com> | 2008-03-19 16:42:18 -0400 |
---|---|---|
committer | Adam Jackson <ajax@redhat.com> | 2008-03-19 16:42:18 -0400 |
commit | b0dad860b9bbe5db7ae7cf5ef1a8eacb3cb5db05 (patch) | |
tree | f2b0cbae517532ef7cdf5bd1af65ef8d89403c6c | |
parent | edfeb249a80e52fb67c075e1f5e07d420cccb2b5 (diff) |
Fix ioctl() outparameter on LP64 systems.
-rw-r--r-- | src/v4l.c | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -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 */ |