v4l2: Fix compilation with older kernels

https://bugzilla.gnome.org/show_bug.cgi?id=701595
This commit is contained in:
Stirling Westrup 2013-06-04 17:04:11 +02:00 committed by Sebastian Dröge
parent 3417a791ac
commit 86405d6ee7

View file

@ -277,7 +277,9 @@ gst_v4l2_fill_lists (GstV4l2Object * v4l2object)
#ifdef V4L2_CTRL_TYPE_INTEGER_MENU #ifdef V4L2_CTRL_TYPE_INTEGER_MENU
case V4L2_CTRL_TYPE_INTEGER_MENU: case V4L2_CTRL_TYPE_INTEGER_MENU:
#endif #endif
#ifdef V4L2_CTRL_TYPE_BITMASK
case V4L2_CTRL_TYPE_BITMASK: case V4L2_CTRL_TYPE_BITMASK:
#endif
case V4L2_CTRL_TYPE_BUTTON:{ case V4L2_CTRL_TYPE_BUTTON:{
int i; int i;
control.name[31] = '\0'; control.name[31] = '\0';