[vlc-commits] v4l2: work around missing V4L2_IN_CAP_STD on old kernels

Rémi Denis-Courmont git at videolan.org
Fri Apr 6 07:51:08 CEST 2012


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Fri Apr  6 08:48:49 2012 +0300| [bd23dee8f9bd4493b298ae2c25a30068fff89b37] | committer: Rémi Denis-Courmont

v4l2: work around missing V4L2_IN_CAP_STD on old kernels

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

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

diff --git a/modules/access/v4l2/video.c b/modules/access/v4l2/video.c
index 155a6bd..b2e4648 100644
--- a/modules/access/v4l2/video.c
+++ b/modules/access/v4l2/video.c
@@ -516,11 +516,15 @@ static v4l2_std_id var_InheritStandard (vlc_object_t *obj, const char *varname)
 static int SetupStandard (vlc_object_t *obj, int fd,
                           const struct v4l2_input *restrict input)
 {
+#ifdef V4L2_IN_CAP_STD
     if (!(input->capabilities & V4L2_IN_CAP_STD))
     {
         msg_Dbg (obj, "no video standard selection");
         return 0;
     }
+#else
+    msg_Dbg (obj, "video standard selection unknown");
+#endif
 
     v4l2_std_id std = var_InheritStandard (obj, CFG_PREFIX"standard");
     if (std == V4L2_STD_UNKNOWN)



More information about the vlc-commits mailing list