[vlc-devel] commit: Add some extra debug. Fix compilation. (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> | Fri Sep 25 21:58:47 2009 +0200| [3ebf6ff8507a926de173ae4c126bf493a1b5b84e] | committer: Antoine Cellerier 

Add some extra debug. Fix compilation.

If people now have "RDS", "hardware frequency seeking" or "VBI capture" in their v4l2 output, please say so!
(cherry picked from commit aa40732b6708f533d84b54294e6ba809a3ee07ff)

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

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

 modules/access/v4l2.c |   26 ++++++++++++++++++++------
 1 files changed, 20 insertions(+), 6 deletions(-)

diff --git a/modules/access/v4l2.c b/modules/access/v4l2.c
index b37670b..5aa3822 100644
--- a/modules/access/v4l2.c
+++ b/modules/access/v4l2.c
@@ -1085,9 +1085,13 @@ static int AccessOpen( vlc_object_t * p_this )
         if( FindMainDevice( p_this, p_sys, false ) == VLC_SUCCESS)
         {
             if( p_sys->io == IO_METHOD_READ )
+            {
                 ACCESS_SET_CALLBACKS( AccessReadStream, NULL, AccessControl, NULL );
+            }
             else
+            {
                 ACCESS_SET_CALLBACKS( NULL, AccessRead, AccessControl, NULL );
+            }
             return VLC_SUCCESS;
         }
     }
@@ -1098,9 +1102,13 @@ static int AccessOpen( vlc_object_t * p_this )
     if( FindMainDevice( p_this, p_sys, false ) == VLC_SUCCESS )
     {
         if( p_sys->io == IO_METHOD_READ )
+        {
             ACCESS_SET_CALLBACKS( AccessReadStream, NULL, AccessControl, NULL );
+        }
         else
+        {
             ACCESS_SET_CALLBACKS( NULL, AccessRead, AccessControl, NULL );
+        }
         return VLC_SUCCESS;
     }
 
@@ -2384,19 +2392,25 @@ static bool ProbeVideoDev( vlc_object_t *p_obj, demux_sys_t *p_sys,
     if( p_sys->io == IO_METHOD_AUTO )
     {
         if( p_sys->dev_cap.capabilities & V4L2_CAP_STREAMING )
-        {
-            msg_Err(p_obj, "Set p_sys->io to MMAP" );
             p_sys->io = IO_METHOD_MMAP;
-        }
         else if( p_sys->dev_cap.capabilities & V4L2_CAP_READWRITE )
-        {
-            msg_Err(p_obj, "Set p_sys->io to READ" );
             p_sys->io = IO_METHOD_READ;
-        }
         else
             msg_Err( p_obj, "No known I/O method supported" );
     }
 
+    if( p_sys->dev_cap.capabilities & V4L2_CAP_RDS_CAPTURE )
+        msg_Dbg( p_obj, "device supports RDS" );
+
+    if( p_sys->dev_cap.capabilities & V4L2_CAP_HW_FREQ_SEEK )
+        msg_Dbg( p_obj, "device supports hardware frequency seeking" );
+
+    if( p_sys->dev_cap.capabilities & V4L2_CAP_VBI_CAPTURE )
+        msg_Dbg( p_obj, "device support raw VBI capture" );
+
+    if( p_sys->dev_cap.capabilities & V4L2_CAP_SLICED_VBI_CAPTURE )
+        msg_Dbg( p_obj, "device support sliced VBI capture" );
+
     /* Now, enumerate all the video inputs. This is useless at the moment
        since we have no way to present that info to the user except with
        debug messages */




More information about the vlc-devel mailing list