]> git.sesse.net Git - vlc/commitdiff
V4L2_CAP_HW_FREQ_SEEK is new in 2.6.27, so don't use it if compiling with older kerne...
authorAntoine Cellerier <dionoea@videolan.org>
Mon, 28 Sep 2009 12:09:11 +0000 (14:09 +0200)
committerAntoine Cellerier <dionoea@videolan.org>
Mon, 28 Sep 2009 12:09:11 +0000 (14:09 +0200)
modules/access/v4l2.c

index cb34458c2684864aceb8e5a7900405bc4846af2f..0ead7bfa9674ae77218500bce594b1629f386a53 100644 (file)
@@ -2413,8 +2413,10 @@ static bool ProbeVideoDev( vlc_object_t *p_obj, demux_sys_t *p_sys,
     if( p_sys->dev_cap.capabilities & V4L2_CAP_RDS_CAPTURE )
         msg_Dbg( p_obj, "device supports RDS" );
 
+#ifdef V4L2_CAP_HW_FREQ_SEEK
     if( p_sys->dev_cap.capabilities & V4L2_CAP_HW_FREQ_SEEK )
         msg_Dbg( p_obj, "device supports hardware frequency seeking" );
+#endif
 
     if( p_sys->dev_cap.capabilities & V4L2_CAP_VBI_CAPTURE )
         msg_Dbg( p_obj, "device support raw VBI capture" );