[Bug 783945] v4l2src: gst-launch -e flag causes usb camera disconnection (Logitech C920)

GStreamer (GNOME Bugzilla) bugzilla at gnome.org
Mon Jun 19 14:09:47 UTC 2017


https://bugzilla.gnome.org/show_bug.cgi?id=783945

--- Comment #3 from Nicolas Dufresne (stormer) <nicolas at ndufresne.ca> ---
Note, I can reproduce in 1.10.4 (libv4l2 enabled), but not with master without
libv4l2. When it fails, you can see:

  usb 3-1: device descriptor read/64, error -110

Which I bet means the camera firmware crashed, or the UVC driver had an issue,
that I don't know. To me, this looks like Logitech, Kernel or libv4l2 bug. One
thing that could trigger races though in GStreamer is that when EOS is sent
from the application, we quickly stop streaming, free the buffers, allocator
the buffer and start streaming again. That's something in GstBaseSrc and
GstV4l2Src that we could address, as it stresses the driver. It make no sense
to free and realloc buffers after EOS in BaseSrc, we should instead use
gst_buffer_pool_set_flushing() method instead of set_active(). On GstV4l2Src
side, we could remove the fact the the pool activation can trigger buffer
allocation/free and STREAMON/STREAMOFF, this way it prevents baseclass or
upstream element (for v4l2sink) of doing anything silly.

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.


More information about the gstreamer-bugs mailing list