v4l2: handle return value -ENOTTY for unimplemented VIDIOC_G_PARM
authorPhilipp Zabel <p.zabel@pengutronix.de>
Thu, 5 Jul 2012 16:02:27 +0000 (18:02 +0200)
committerSebastian Dröge <sebastian.droege@collabora.co.uk>
Wed, 1 May 2013 13:34:50 +0000 (15:34 +0200)
commit4d3f6850cac63145b119ffe60cfb197e5d7e77cd
tree152a04627c4cf02f68a66754ba2c0e53c03f6d6c
parentbf3a0b7e37c90d024e7950445614ef881f0e0a4d
v4l2: handle return value -ENOTTY for unimplemented VIDIOC_G_PARM

Newer kernels return -ENOTTY, older kernels return -EINVAL if the ioctl
is not implemented. With this patch, GStreamer handles both cases.

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