Commit 0f1bed44 authored by Antoine Cellerier's avatar Antoine Cellerier

Dshow input fix (suggest by "sneeze" on http://forum.videolan.org/viewtopic.php?t=21578, Thanks).

parent 1f1c0508
......@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment