gstreamer/sys
Hans de Goede 116649371e v4l2: get_nearest_size: Fix "Unsupported field type" errors
Most V4L2 ioctls like try_fmt will adjust input fields to match what the
hardware can do rather then returning -EINVAL. As is docmented here:
http://linuxtv.org/downloads/v4l-dvb-apis/vidioc-g-fmt.html

EINVAL is only returned if the buffer type field is invalid or not supported.

So upon requesting V4L2_FIELD_NONE devices which can only do interlaced
mode will change the field value to e.g. V4L2_FIELD_BOTTOM as only returning
half the lines is the closest they can do to progressive modes.

In essence this means that we've failed to get a (usable) progessive mode
and should fall back to interlaced mode.

This commit adds a check for having gotten a usable field value after the first
try_fmt, to force fallback to interlaced mode even if the try_fmt succeeded,
thereby fixing get_nearest_size failing on these devices.

https://bugzilla.gnome.org/show_bug.cgi?id=735660
2014-08-29 16:15:11 -04:00
..
directsound directsoundsink: WAVEFORMATEX is unsigned for 8 bit integers, and signed for others 2013-08-21 16:41:21 +02:00
oss oss: simplify probed caps before returning them 2014-06-13 09:52:03 +01:00
oss4 oss4: remove dead mixer code 2014-05-02 09:41:19 +01:00
osxaudio docs: remove outdated and pointless 'Last reviewed' lines from docs 2014-04-26 23:35:17 +01:00
osxvideo osxvideosink: remove legacy code for passing a window handle 2014-06-23 20:40:09 +02:00
sunaudio Don't use setlocale in plugins() 2013-09-01 21:18:38 +01:00
v4l2 v4l2: get_nearest_size: Fix "Unsupported field type" errors 2014-08-29 16:15:11 -04:00
waveform gst: Add better support for static plugins 2013-04-15 15:54:11 +02:00
ximage ximagesrc: Fix warning about missing return value 2014-07-31 09:53:53 -04:00
Makefile.am v4l2: Fix typo V4L_DIR intead of V4L2_DIR 2014-03-15 18:41:16 +01:00