Re: [V4l2-library] Messed up syscall return value
Hans de Goede <[email protected]> Tue, 29 Jul 2008 12:00:34 +0200
| Newsgroups | gmane.linux.drivers.spca50x.devel,gmane.comp.video.video4linux |
|---|---|
| Message-ID | <[email protected]> |
Jiri Slaby wrote: > On 07/29/2008 12:16 AM, Gregor Jasny wrote: >> ioctl(3, VIDIOC_REQBUFS or VT_DISALLOCATE, 0x7fffbfda0060) = 2 >> >> Huh? Something evils seems to be going on in V4L2 land. >> I've spotted the following lines in videobuf-core.c:videobuf_reqbufs >> >> req->count = retval; >> >> done: >> mutex_unlock(&q->vb_lock); >> return retval; >> >> That would explain the retval '2'. It seems a retval = 0; statement is >> missing here for the success case. > Indeed, so iow I'm happy to conclude that thie is not a libv4l bug :) Regards, Hans ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/