| Summary: | errors to stderr when calling unicap_stop_capture | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | John Sullivan <jsrhbz> |
| Component: | libv4l | Assignee: | Hans de Goede <hdegoede> |
| Status: | CLOSED WONTFIX | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 14 | CC: | hdegoede |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2012-08-16 13:21:33 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
This message is a notice that Fedora 14 is now at end of life. Fedora has stopped maintaining and issuing updates for Fedora 14. It is Fedora's policy to close all bug reports from releases that are no longer maintained. At this time, all open bugs with a Fedora 'version' of '14' have been closed as WONTFIX. (Please note: Our normal process is to give advanced warning of this occurring, but we forgot to do that. A thousand apologies.) Package Maintainer: If you wish for this bug to remain open because you plan to fix it in a currently maintained version, feel free to reopen this bug and simply change the 'version' to a later Fedora version. Bug Reporter: Thank you for reporting this issue and we are sorry that we were unable to fix it before Fedora 14 reached end of life. If you would still like to see this bug fixed and are able to reproduce it against a later version of Fedora, you are encouraged to click on "Clone This Bug" (top right of this page) and open it against that version of Fedora. Although we aim to fix as many bugs as possible during every release's lifetime, sometimes those efforts are overtaken by events. Often a more recent Fedora release includes newer upstream software that fixes bugs or makes them obsolete. The process we are following is described here: http://fedoraproject.org/wiki/BugZappers/HouseKeeping |
When using libunicap over libv4l to read a laptop's built-in USB webcam, the following simple test case: #include <stdlib.h> #include <unicap.h> int main(int argc, char *argv[]) { unicap_handle_t unihand; unicap_device_t unidev; unicap_enumerate_devices(NULL, &unidev, 0); unicap_open(&unihand, &unidev); unicap_start_capture(unihand); sleep(1); unicap_stop_capture(unihand); unicap_close(unihand); return 0; } (Compile with "g++ v4lt.cpp `pkg-config --cflags --libs libunicap` -o v4lt".) ...produces multiple error messages from within unicap_stop_capture(). These are generated by libv4l. From stracing the process it looks like v4l first issues ioctl(VIDIOC_STREAMOFF), then attempts to call ioctl(VIDIOC_DQBUF) on each of its previously queued buffers. These ioctls fail with EINVAL. (I'm guessing that it's something like STREAMOFF automatically dequeues the buffers, so they are no longer valid for the manual de-queue operations.) This causes the line "libv4l2: error dequeuing buf: Invalid argument" to be output 16 times, which is a bit messy. Furthermore, attempting to use UNICAP_BUFFER_TYPE_USER doesn't work: unicap_wait_buffer() blocks forever. Using the default system buffers and registering a frame callback (which is called from within libv4l's capture thread) does work, but this is not documented anywhere as a restriction of using the libv4l driver so I assume it's *supposed* to work. (I've no idea whether that is a problem within libv4l or on the libunicap side of things.)