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

GStreamer (bugzilla.gnome.org) bugzilla at gnome.org
Thu Jan 8 08:31:38 PST 2015


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

--- Comment #10 from Nicolas Dufresne (stormer) <nicolas.dufresne at collabora.co.uk> 2015-01-08 16:31:35 UTC ---
Btw, 19 is ENODEV, in V4L2 context it's very clear:

"Device not found or was removed."

I don't see any error reported by STREAMOFF for which we would still be
streaming. There is only EBUSY, but it make no sense, this is what other ioctl
may return if STREAMOFF need to be called first. This would be a deadend.

So the change I would do is to warn on error, but still assume we are no longer
streaming. This way, at worst other call will fail later and device will be
closed properly (the only solution when the device is not responding).

-- 
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