lavd/v4l2: allow devices not implementing VIDIOC_G_PARM
authorNiklas Söderlund <niklas.soderlund+renesas@ragnatech.se>
Wed, 15 Jun 2016 15:21:42 +0000 (17:21 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Thu, 16 Jun 2016 14:27:35 +0000 (16:27 +0200)
commit6fd4145a1e6b918f0cd1dc268fa703c1cec6fd96
tree6f2ddcc90fa40b69202c2e9f6aba5627b90f314a
parenteaa11437a47ec5240b19226456e63a015a2efa01
lavd/v4l2: allow devices not implementing VIDIOC_G_PARM

Not all v4l2 devices implement the VIDIOC_G_PARM ioctl. This patch allow
ffmpeg to open such device and treat it the same as devices that do
implement the ioctl but returns that it do not implement the
V4L2_CAP_TIMEPERFRAME capability.

Signed-off-by: Niklas Söderlund <niklas.soderlund+renesas@ragnatech.se>
Reviewed-by: Benoit Fouet <benoit.fouet@free.fr>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavdevice/v4l2.c