GNOME Bugzilla – Bug 733750
v4l2object: query minimum required buffers for output
Last modified: 2014-07-25 17:50:58 UTC
Created attachment 281714 [details] [review] v4l2object: query minimum required buffers for output As suggested by Nicolas, V4L2 devices could expose a minimum buffers count through the CTRL ioctl. So instead of blindly propose a pool with default value, we may ask the driver first. I attached a patch which basically do this in gst_v4l2_object_propose_allocation(). But I don't found any device using this control, so for test, I just modify my v4l2 drivers.
Review of attachment 281714 [details] [review]: Looks good. (I'm merging it now)
Comment on attachment 281714 [details] [review] v4l2object: query minimum required buffers for output commit 010272a796325d3b9a94b5dcf887706cd2524b27 Author: Aurélien Zanelli <aurelien.zanelli@parrot.com> Date: Fri Jul 25 17:42:20 2014 +0200 v4l2object: query minimum required buffers for output Some v4l2 devices could require a minimum buffers different from default values. Rather than blindly propose a pool with min-buffers set to the default value, it ask the device using control ioctl. https://bugzilla.gnome.org/show_bug.cgi?id=733750
I don't think it's needed to backport, as for now no driver implements this correctly. Will bee needed by the decoder eventually, but that will only make it for 1.6.