]> git.sesse.net Git - vlc/commitdiff
Probe v4l2 when specifically forced not when an access is forced.
authorLaurent Aimar <fenrir@videolan.org>
Sun, 18 Jan 2009 16:38:38 +0000 (17:38 +0100)
committerLaurent Aimar <fenrir@videolan.org>
Sun, 18 Jan 2009 16:49:51 +0000 (17:49 +0100)
modules/access/v4l2.c

index 517bc1c3af6734ea2c2e3a9962f2eb6d2373a5bc..870900c302ff9bd35938d1f0e81631a4c4f8905b 100644 (file)
@@ -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;