[vlc-devel] commit: V4L2_CAP_HW_FREQ_SEEK is new in 2.6.27, so don' t use it if compiling with older kernel headers. (Antoine Cellerier )

git version control git at videolan.org
Sat Oct 3 18:22:08 CEST 2009


vlc | branch: 1.0-bugfix | Antoine Cellerier <dionoea at videolan.org> | Mon Sep 28 14:09:11 2009 +0200| [ac20b8f88fd3d244265153c54c5dbb7fd64c9757] | committer: Antoine Cellerier 

V4L2_CAP_HW_FREQ_SEEK is new in 2.6.27, so don't use it if compiling with older kernel headers.
(cherry picked from commit fffde282a4a18839f5c67ba64a4968b753e53b63)

Signed-off-by: Antoine Cellerier <dionoea at videolan.org>

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=ac20b8f88fd3d244265153c54c5dbb7fd64c9757
---

 modules/access/v4l2.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/modules/access/v4l2.c b/modules/access/v4l2.c
index 5aa3822..c20dde7 100644
--- a/modules/access/v4l2.c
+++ b/modules/access/v4l2.c
@@ -2402,8 +2402,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" );




More information about the vlc-devel mailing list