v4l2: Workaround libv4l2 RW emulation bug
authorNicolas Dufresne <nicolas.dufresne@collabora.co.uk>
Sun, 7 Dec 2014 22:33:51 +0000 (17:33 -0500)
committerNicolas Dufresne <nicolas.dufresne@collabora.co.uk>
Sun, 7 Dec 2014 22:43:01 +0000 (17:43 -0500)
commiteb1dcd841abe80abf7b9e880e195c8a0033ea0d4
tree0bd7838f4f7b9ed06b0675ad2e4c52e74e4c3da1
parent0e05faf91a476efd56adfb0d1b82e71a2d13ff89
v4l2: Workaround libv4l2 RW emulation bug

When libv4l2 emulates RW mode on top of MMAP devices, the queues are
only initialized on first read. The problem is that poll() will fail
if called before the queues are initialized and streaming. Workaround
this by doing a zero size read when pool is started in that IO mode.

https://bugzilla.gnome.org/show_bug.cgi?id=740633
sys/v4l2/gstv4l2bufferpool.c