v4l2camerasrc: Implement video capture
authorThiago Santos <thiago.sousa.santos@collabora.co.uk>
Mon, 29 Nov 2010 18:49:26 +0000 (15:49 -0300)
committerThiago Santos <thiago.sousa.santos@collabora.co.uk>
Wed, 8 Dec 2010 18:38:28 +0000 (15:38 -0300)
commit91b7f2d99ed68f5c66aa3baf7a4cbfb9bd0bc5a8
tree93607148f1aa17737ac5367fcb8744ce68ba70d6
parent596422d19c645de5b96d9862b3f99956fadff03f
v4l2camerasrc: Implement video capture

Implements video capture on v4l2camerasrc by using the mode property,
when mode is set to video, the pad probe pushes a new segment
and starts pushing buffers on the pad, when it the property is
sent back to preview, the pad probe pushes an EOS and stops
pushing buffers.

This is controlled by a Recording State variable, that is protected
by the GST_OBJECT_LOCK. I don't think locking for every buffer is
nice, so we could find an alternative lockless way here.
gst/camerabin2/gstv4l2camerasrc.c
gst/camerabin2/gstv4l2camerasrc.h