v4l2sink: Use V4L2_BUF_TYPE_VIDEO_OUTPUT_OVERLAY if driver advertises it.
authorAndreas Naumann <anaumann@ultratronik.de>
Wed, 27 Jan 2016 08:57:38 +0000 (09:57 +0100)
committerNicolas Dufresne <nicolas.dufresne@collabora.com>
Mon, 6 Jun 2016 21:26:13 +0000 (17:26 -0400)
commitb18031cf4b5c3089c87831db9f43350bda9ffa18
tree4da2904648de807c1fbcae0b43fe45097e0e0223
parentb4e6a7156649d90b5fd26c4c642d3e4708586b81
v4l2sink: Use V4L2_BUF_TYPE_VIDEO_OUTPUT_OVERLAY if driver advertises it.

On modern kernels, the G/S_FMT ioctls will always fail using
V4L2_BUF_TYPE_VIDEO_OVERLAY with VFL_DIR_TX (e.g. real overlay out drivers)
since this is not the intented use (rather rx, according to v4l2 API doc).
Probably this is why the Video Output Overlay interface was created, so if
the driver advertises it we might as well use.
For old kernels (pre 2012) the old way might still work so keeping this for
compatibility.

https://bugzilla.gnome.org/show_bug.cgi?id=761165
sys/v4l2/gstv4l2sink.c