v4l2: simplify setting the capture format
authorWim Taymans <wim.taymans@collabora.co.uk>
Tue, 12 Jul 2011 18:03:32 +0000 (19:03 +0100)
committerWim Taymans <wim.taymans@collabora.co.uk>
Tue, 12 Jul 2011 18:03:32 +0000 (19:03 +0100)
commite8ae00f5fcd0ee53f500293781bce73820c50414
treef76a6c97e38d55639f0925ec07b42bd5f596166f
parentb7ad28ba532625c09fbc622bfac69ec2f0b63465
v4l2: simplify setting the capture format

Pass the caps to the set_format function and make _set_format parse the caps.
Also keep the parsed values in the v4l2object so that we can refer to them when
we want.
sys/v4l2/gstv4l2object.c
sys/v4l2/gstv4l2object.h
sys/v4l2/gstv4l2sink.c
sys/v4l2/gstv4l2src.c
sys/v4l2/v4l2src_calls.c
sys/v4l2/v4l2src_calls.h