v4l2: always generate video info from caps
authorMichael Olbrich <m.olbrich@pengutronix.de>
Fri, 3 May 2013 10:46:37 +0000 (12:46 +0200)
committerSebastian Dröge <sebastian.droege@collabora.co.uk>
Fri, 3 May 2013 11:14:58 +0000 (13:14 +0200)
commit53da901cc9814ba6581b113ce9e82db25f297147
tree35f9775edc7a77e6a1f1152d8e8636310d7c00bc
parent1e777ede926c2188165071d8d09135f70d6d63b4
v4l2: always generate video info from caps

In the past gst_video_info_from_caps() only video/x-raw. Now it also
supports other video/* and image/* formats.
With this patch the format won't be GST_VIDEO_FORMAT_UNKOWN and
gst_v4l2_buffer_pool_set_config() handles strides correctly.

https://bugzilla.gnome.org/show_bug.cgi?id=699570
sys/v4l2/gstv4l2object.c