changeset 29949:fc8f901ee516

100l, fix check for V4L2 capture capability flag.
author reimar
date Fri, 11 Dec 2009 21:33:57 +0000
parents 20da977f0f3e
children dca751c62fb2
files stream/tvi_v4l2.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/stream/tvi_v4l2.c	Thu Dec 10 23:22:19 2009 +0000
+++ b/stream/tvi_v4l2.c	Fri Dec 11 21:33:57 2009 +0000
@@ -613,7 +613,7 @@
         close(vbi_fd);
         return  TVI_CONTROL_FALSE;
     }
-    if(!cap.capabilities & V4L2_CAP_VBI_CAPTURE){
+    if(!(cap.capabilities & V4L2_CAP_VBI_CAPTURE)){
         mp_msg(MSGT_TV,MSGL_ERR,"vbi: %s does not support VBI capture\n",priv->vbi_dev);
         close(vbi_fd);
         return  TVI_CONTROL_FALSE;