summaryrefslogtreecommitdiffstats
path: root/sys/v4l2/gstv4l2vidorient.c
diff options
context:
space:
mode:
authorBastien Nocera <hadess@hadess.net>2008-06-09 08:42:49 +0000
committerSebastian Dröge <slomo@circular-chaos.org>2008-06-09 08:42:49 +0000
commitd4e7ab0e8cf8d5dd837ab4276d5cfe14e48b0cbe (patch)
tree26c9221c8837741dcba53810d3974382eae80a67 /sys/v4l2/gstv4l2vidorient.c
parentec7e0e7d488e7f5fc21af6b61a77cce6a5d1e3b1 (diff)
sys/v4l2/: Fix compilation with newer GIT kernels that deprecated
Original commit message from CVS: Patch by: Bastien Nocera <hadess at hadess dot net> * sys/v4l2/gstv4l2vidorient.c: * sys/v4l2/v4l2_calls.c: (gst_v4l2_fill_lists): Fix compilation with newer GIT kernels that deprecated V4L2_CID_HCENTER and V4L2_CID_VCENTER. Fixes bug #536317.
Diffstat (limited to 'sys/v4l2/gstv4l2vidorient.c')
-rw-r--r--sys/v4l2/gstv4l2vidorient.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/sys/v4l2/gstv4l2vidorient.c b/sys/v4l2/gstv4l2vidorient.c
index 07ac412b..1fa47e79 100644
--- a/sys/v4l2/gstv4l2vidorient.c
+++ b/sys/v4l2/gstv4l2vidorient.c
@@ -34,6 +34,14 @@
GST_DEBUG_CATEGORY_STATIC (v4l2vo_debug);
#define GST_CAT_DEFAULT v4l2vo_debug
+/* Those are deprecated calls that have been replaced */
+#ifndef V4L2_CID_HCENTER
+#define V4L2_CID_HCENTER V4L2_CID_PAN_RESET
+#endif
+#ifndef V4L2_CID_VCENTER
+#define V4L2_CID_VCENTER V4L2_CID_TILT_RESET
+#endif
+
void
gst_v4l2_video_orientation_interface_init (GstVideoOrientationInterface * klass)
{