GNOME Bugzilla – Bug 587082
v4lsrc should open/close the device in ready
Last modified: 2009-06-29 09:28:44 UTC
it opens/closes the device in basesrc::start/stop. This requires apps to set the element to paused to query settings and this causes it to start streaming (which is not very fast). Same thing was fixed for v4l2src recently.
Created attachment 137438 [details] [review] use state_change function to open/close device only testsed a bit with libv4lcompat. Can someone with a real v4l device please test?
Works fine here with libv4l1compat with two different drivers (uvcvideo and gspca), I could try with gspcav1 but I'm not sure it's worth. Since the patch is only affecting when the device is opened I think it's pretty safe to assume that it will work fine with pure v4l1 drivers too. I don't think you will have an easy time finding some v4l1 device to test it... There is even no test driver like vivi for v4l2.
Fixed? commit b64be90326b28a0fccb2e356c112147776ea2572 Author: Stefan Kost <ensonic@users.sf.net> Date: Fri Jun 26 21:11:45 2009 +0300 v4l: open/close device in ready. Simillar change like in v4l2src. This allows probing feature in paused, wher streaming is noit yet started.
Thanks. Forgot the bug :)