Re: [PATCH/RFC v2 2/2] libv4l2: release the lock before doing a DQBUF

2014-06-09 Thread Hans de Goede
Hi, On 06/09/2014 03:51 PM, Thiago Santos wrote: > In blocking mode, if there are no buffers available the DQBUF will block > waiting for a QBUF to be called but it will block holding the streaming > lock which will prevent any QBUF from happening, causing a deadlock. > > Can be tested with: v4l2

[PATCH/RFC v2 2/2] libv4l2: release the lock before doing a DQBUF

2014-06-09 Thread Thiago Santos
In blocking mode, if there are no buffers available the DQBUF will block waiting for a QBUF to be called but it will block holding the streaming lock which will prevent any QBUF from happening, causing a deadlock. Can be tested with: v4l2grab -t -b -s 2000 Signed-off-by: Thiago Santos --- lib/l