v4l2: take care not to change the current format where appropriate
authorVincent Penquerc'h <vincent.penquerch@collabora.co.uk>
Mon, 8 Aug 2011 09:54:26 +0000 (10:54 +0100)
committerSebastian Dröge <sebastian.droege@collabora.co.uk>
Tue, 9 Aug 2011 07:53:33 +0000 (09:53 +0200)
commit639abf01f94cf13ef4173e502c80a8a40b9e755d
tree602784d4f807e50c21bcfc2d40e4d6e57ea6042e
parent8edb15d12f08f109a06d65b91c3aeb1a6127de6b
v4l2: take care not to change the current format where appropriate

Some drivers are buggy are will change the current format when
processing VIDIOC_TRY_FMT. Save and restore the current format
to ensure the format is kept unchanged.

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