v4l2: fix compilation against newer kernel headers as on FC19
authorBastien Nocera <hadess@hadess.net>
Mon, 18 Mar 2013 14:59:35 +0000 (14:59 +0000)
committerTim-Philipp Müller <tim@centricular.net>
Mon, 18 Mar 2013 14:59:35 +0000 (14:59 +0000)
sys/v4l2/v4l2_calls.c

index 07d390a..4c10f4f 100644 (file)
@@ -291,8 +291,12 @@ gst_v4l2_fill_lists (GstV4l2Object * v4l2object)
         break;
       case V4L2_CID_HFLIP:
       case V4L2_CID_VFLIP:
+#ifndef V4L2_CID_PAN_RESET
       case V4L2_CID_HCENTER:
+#endif
+#ifndef V4L2_CID_TILT_RESET
       case V4L2_CID_VCENTER:
+#endif
 #ifdef V4L2_CID_PAN_RESET
       case V4L2_CID_PAN_RESET:
 #endif