]> git.sesse.net Git - vlc/commitdiff
Dshow input fix (suggest by "sneeze" on http://forum.videolan.org/viewtopic.php?t...
authorAntoine Cellerier <dionoea@videolan.org>
Fri, 9 Jun 2006 20:44:18 +0000 (20:44 +0000)
committerAntoine Cellerier <dionoea@videolan.org>
Fri, 9 Jun 2006 20:44:18 +0000 (20:44 +0000)
modules/access/dshow/dshow.cpp

index 9eb301ae17ff6179725f8892bbcc7a4373878ef9..e25372c20a5da929d7cabb870bce121a14019d07 100644 (file)
@@ -477,16 +477,16 @@ static int CommonOpen( vlc_object_t *p_this, access_sys_t *p_sys,
     for( i = p_sys->i_crossbar_route_depth-1; i >= 0 ; --i )
     {
             var_Get( p_this, "dshow-video-input", &val );
-            if( val.i_int > 0 )
+            if( val.i_int >= 0 )
                     p_sys->crossbar_routes[i].VideoInputIndex=val.i_int;
             var_Get( p_this, "dshow-video-output", &val );
-            if( val.i_int > 0 )
+            if( val.i_int >= 0 )
                     p_sys->crossbar_routes[i].VideoOutputIndex=val.i_int;
             var_Get( p_this, "dshow-audio-input", &val );
-            if( val.i_int > 0 )
+            if( val.i_int >= 0 )
                     p_sys->crossbar_routes[i].AudioInputIndex=val.i_int;
             var_Get( p_this, "dshow-audio-output", &val );
-            if( val.i_int > 0 )
+            if( val.i_int >= 0 )
                     p_sys->crossbar_routes[i].AudioOutputIndex=val.i_int;
 
         IAMCrossbar *pXbar = p_sys->crossbar_routes[i].pXbar;