v4l2: Only conditionally use V4L2_CTRL_TYPE_INTEGER_MENU, it's not available in older...
authorSebastian Dröge <sebastian.droege@collabora.co.uk>
Wed, 29 May 2013 18:35:41 +0000 (20:35 +0200)
committerSebastian Dröge <sebastian.droege@collabora.co.uk>
Wed, 29 May 2013 18:35:41 +0000 (20:35 +0200)
sys/v4l2/v4l2_calls.c

index 8b0d7fccaa87a088b173dfebe999ad6f08e50c84..c1c5ac4fe03dd38821cfb3f0201448df4a29e4f0 100644 (file)
@@ -274,7 +274,9 @@ gst_v4l2_fill_lists (GstV4l2Object * v4l2object)
       case V4L2_CTRL_TYPE_INTEGER:
       case V4L2_CTRL_TYPE_BOOLEAN:
       case V4L2_CTRL_TYPE_MENU:
+#ifdef V4L2_CTRL_TYPE_INTEGER_MENU
       case V4L2_CTRL_TYPE_INTEGER_MENU:
+#endif
       case V4L2_CTRL_TYPE_BITMASK:
       case V4L2_CTRL_TYPE_BUTTON:{
         int i;