GNOME Bugzilla – Bug 450190
[PATCH] v4l2src set_capture (parameters) fails
Last modified: 2007-08-22 08:23:04 UTC
gst_v4l2src_set_capture issues VIDIOC_G_PARM and VIDIOC_S_PARM ioctl, and expects/wants this to succeed. However, according to specs (http://www.linuxtv.org/downloads/video4linux/API/V4L2_API/spec/x1721.htm), these ioctls are optional and may return EINVAL (and they really are not implemented in quite some, e.g. bttv capture card).
Created attachment 90494 [details] [review] Possible patch * Make VIDIOC_S/G_PARM ioctl's optional [the remaining GST_ELEMENT_WARNING may still be a bit too ominous/scary, as it can actually be perfectly normal]
2007-08-22 Stefan Kost <ensonic@users.sf.net> patch by: Mark Nauwelaerts <manauw@skynet.be> * sys/v4l2/v4l2src_calls.c: Handle optional v4l2 ioctls gracefully.