diff options
author | Jan Alexander Steffens (heftig) <jan.steffens@gmail.com> | 2017-11-06 21:13:34 +0100 |
---|---|---|
committer | Nicolas Dufresne <nicolas.dufresne@collabora.com> | 2017-11-06 19:40:28 -0500 |
commit | 75a59474c699c92b1446365845758aef77afa1b2 (patch) | |
tree | 90b3d8cfb1a3f4a94d6a5445cf5cd7c055792aad | |
parent | 5483d6e1f51b6069b492c6747098d5a5b3d42a20 (diff) | |
download | gstreamer-plugins-good-75a59474c699c92b1446365845758aef77afa1b2.tar.gz |
v4l2deviceprovider: Add missing V4L2_CAP_TOUCH
This define was only added in Linux 4.8. This commit is for the stable
branch only, since we want to avoid bumping the v4l headers in fear of
regressions.
https://bugzilla.gnome.org/show_bug.cgi?id=789197
-rw-r--r-- | sys/v4l2/gstv4l2deviceprovider.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/sys/v4l2/gstv4l2deviceprovider.c b/sys/v4l2/gstv4l2deviceprovider.c index fef146e40..23959ca57 100644 --- a/sys/v4l2/gstv4l2deviceprovider.c +++ b/sys/v4l2/gstv4l2deviceprovider.c @@ -38,6 +38,11 @@ #include <gudev/gudev.h> #endif +/* Only available since Linux 4.8 */ +#ifndef V4L2_CAP_TOUCH +#define V4L2_CAP_TOUCH 0x10000000 +#endif + static GstV4l2Device *gst_v4l2_device_new (const gchar * device_path, const gchar * device_name, GstCaps * caps, GstV4l2DeviceType type, GstStructure * props); |