[vlc-devel] commit: Probe v4l2 when specifically forced not when an access is forced. ( Laurent Aimar )

git version control git at videolan.org
Sun Jan 18 17:56:22 CET 2009


vlc | branch: master | Laurent Aimar <fenrir at videolan.org> | Sun Jan 18 17:38:38 2009 +0100| [f8b7bbc656d95ee7d850e2f07872ab7c9fd55a19] | committer: Laurent Aimar 

Probe v4l2 when specifically forced not when an access is forced.

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

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

diff --git a/modules/access/v4l2.c b/modules/access/v4l2.c
index 517bc1c..870900c 100644
--- a/modules/access/v4l2.c
+++ b/modules/access/v4l2.c
@@ -565,7 +565,8 @@ static int DemuxOpen( vlc_object_t *p_this )
     demux_sys_t *p_sys;
 
     /* Only when selected */
-    if( *p_demux->psz_access == '\0' ) return VLC_EGENERIC;
+    if( strcmp( p_demux->psz_access, "v4l2" ) )
+        return VLC_EGENERIC;
 
     /* Set up p_demux */
     p_demux->pf_control = DemuxControl;




More information about the vlc-devel mailing list