[Bug 732734] v4l2src: Seems to leak fd when camera is unplugged

GStreamer (bugzilla.gnome.org) bugzilla at gnome.org
Thu Jan 8 08:23:21 PST 2015


https://bugzilla.gnome.org/show_bug.cgi?id=732734
  GStreamer | gst-plugins-good | git

--- Comment #9 from Nicolas Dufresne (stormer) <nicolas.dufresne at collabora.co.uk> 2015-01-08 16:23:18 UTC ---
Ok, a simple way to produce:

1. Plug the camera
2. Run:
GST_DEBUG=v4l2allocator:7 gst-launch-1.0  v4l2src device=/dev/video2 !
videoconvert ! xvimagesink
3. Unplug the camera

Notice that the Allocator is never finalized. The allocator has a reference on
the device FD.

What seems to happens, is that when trying to pull down the device, STREAMOFF
failed (error 19) and we assumed that pulling it down failed. Solution will be
to either ignore streamoff error or handle errno 19.

-- 
Configure bugmail: https://bugzilla.gnome.org/userprefs.cgi?tab=email
------- 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