Hello, thanks for the reviews and comments. I updated the example as suggested by Mauro and reimplemented the deadlock fix as suggested by Hans. Here is the second version of those patches. 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 | 261 +++++++++++++++++++++++++++++++++++++-------- lib/libv4l2/libv4l2-priv.h | 1 + lib/libv4l2/libv4l2.c | 13 ++- 4 files changed, 232 insertions(+), 45 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