[vlc-devel] commit: Add some extra debug. Fix compilation. (Antoine Cellerier )
git version control
git at videolan.org
Fri Sep 25 21:59:50 CEST 2009
vlc | branch: master | Antoine Cellerier <dionoea at videolan.org> | Fri Sep 25 21:58:47 2009 +0200| [aa40732b6708f533d84b54294e6ba809a3ee07ff] | 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!
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=aa40732b6708f533d84b54294e6ba809a3ee07ff
---
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 515d5cd..cb34458 100644
--- a/modules/access/v4l2.c
+++ b/modules/access/v4l2.c
@@ -1115,9 +1115,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;
}
}
@@ -1128,9 +1132,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;
}
@@ -2395,19 +2403,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