Wait for a frame to become available before capturing it
authorSjoerd Simons <sjoerd.simons@collabora.co.uk>
Sun, 1 Mar 2009 18:55:26 +0000 (19:55 +0100)
committerSebastian Dröge <sebastian.droege@collabora.co.uk>
Sun, 1 Mar 2009 18:55:26 +0000 (19:55 +0100)
commitb6755a70004a445a475e6c4b1c2d289e908cf2a9
treed6e4111b21d477cdfdbc4e3f84af1ead54ec2550
parent7087da96dc850a931f7fca4c036fb0a2c58f04ac
Wait for a frame to become available before capturing it

Use GstPoll to wait for the fd of the video device to become readable before
trying to capture a frame. This speeds up stopping v4l2src a lot as it no
longer has to wait for the next frame, especially when capturing with low
framerates or when the video device just never generates a frame (which seems a
common issue for uvcvideo devices)

Fixes bug #563574.
sys/v4l2/gstv4l2object.c
sys/v4l2/gstv4l2object.h
sys/v4l2/gstv4l2src.c
sys/v4l2/v4l2_calls.c
sys/v4l2/v4l2src_calls.c