This patchset modifies v4l2grab to allow using 2 threads (one for qbuf and another for dqbuf) to simulate multithreaded v4l2 usage. This is done to show a issue when using libv4l2 in blocking mode, if a DQBUF is issued when there are no buffers available it will block waiting for one but, as it blocks holding the stream_lock, a QBUF will never happen and we have a deadlock. Thiago Santos (2): v4l2grab: Add threaded producer/consumer option libv4l2: release the lock before doing a DQBUF contrib/test/Makefile.am | 2 +- contrib/test/v4l2grab.c | 265 +++++++++++++++++++++++++++++++++++++++-------- lib/libv4l2/libv4l2.c | 2 + 3 files changed, 225 insertions(+), 44 deletions(-) -- 2.0.0 -- To unsubscribe from this list: send the line "unsubscribe linux-media" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html