From: Hans de Goede <j.w.r.degoede@hhs.nl>
To: Gregor Jasny <jasny@vidsoft.de>
Cc: video4linux-list@redhat.com, v4l2 library <v4l2-library@linuxtv.org>
Subject: Re: Announcing libv4l 0.3.1 aka "the vlc release"
Date: Tue, 08 Jul 2008 00:00:32 +0200 [thread overview]
Message-ID: <48729200.1090304@hhs.nl> (raw)
In-Reply-To: <20080703203623.GI18818@vidsoft.de>
Gregor Jasny wrote:
> Hi,
>
> I've just included libv4l2 in our app. After after a short debugging
> session I noticed the following:
>
> In the man page the ioctl prototype is defined as
> int ioctl(int d, int request, ...). To catch the EINTR case I wrote a
> wrapper function:
>
> int xioctl (int fd, int request, void *arg)
>
> But as long as the request argument is int instead of unsigned long, the
> request gets sign extended:
>
> xioctl (fd, VIDIOC_TRY_FMT, &fmt)
> (gdb) p/x request
> $2 = 0xc0d05640
>
> int v4l2_ioctl (int fd, unsigned long int request, ...);
> (gdb) p/x request
> $3 = 0xffffffffc0d05640
>
> Maybe you should mention this "issue" in the FAQ or documentaion.
>
Thanks for reporting this, this has saved me quite some time while debugging
issues with xawtv and kopete. I believe that the upper 32 bits added by this
(obviously wrong code) get thrown away somewhere down the path to the kernel on
64 bit archs, so I've modified libv4l to just ignore the upper 32 bits to match
this behavior.
Regards,
Hans
> PS: Should I submit the sar-constraint patch to Thierry myself?
Nope I was just being slow, just like with answering this. Thanks for the
testing and the patches!
--
video4linux-list mailing list
Unsubscribe mailto:video4linux-list-request@redhat.com?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/video4linux-list
prev parent reply other threads:[~2008-07-07 21:53 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-06-29 20:41 Announcing libv4l 0.3.1 aka "the vlc release" Hans de Goede
2008-06-29 21:03 ` Antoine Cellerier
2008-06-29 21:20 ` Hans de Goede
2008-06-30 9:39 ` Gregor Jasny
2008-07-03 20:36 ` Gregor Jasny
2008-07-07 22:00 ` Hans de Goede [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=48729200.1090304@hhs.nl \
--to=j.w.r.degoede@hhs.nl \
--cc=jasny@vidsoft.de \
--cc=v4l2-library@linuxtv.org \
--cc=video4linux-list@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox