Bug in dshow.cpp? (unable to set dshow-video-input=0)
Posted: 05 Jun 2006 23:51
I'm playing around with the dshow input for watching TV, and I'm having problems to configure the crossbar pins using VLC.
It works ok if I select 'Advanced options->Device properties' box and configure the crossbar via the drivers "crossbar properties window".
The thing is that I need to set the dshow-video-input paramter to 0 (the drivers default value is 1).
So I browsed through the code in SVN (modules/access/dshow/dshow.cpp, revision 15530), and I found what I think is a small bug.
At line 479 and forward, the code looks like this
Shouldn't the test be
though?
Since the value for 'default' is -1, and 0 is a valid input pin?
(If so, the other pin configuration parameters has the same problem also)
I'm not so good at expressing myself in English, so I hope this post wasn't too confusing. ;)
It works ok if I select 'Advanced options->Device properties' box and configure the crossbar via the drivers "crossbar properties window".
The thing is that I need to set the dshow-video-input paramter to 0 (the drivers default value is 1).
So I browsed through the code in SVN (modules/access/dshow/dshow.cpp, revision 15530), and I found what I think is a small bug.
At line 479 and forward, the code looks like this
Code: Select all
var_Get( p_this, "dshow-video-input", &val );
if( val.i_int > 0 )
p_sys->crossbar_routes[i].VideoInputIndex=val.i_int;
var_Get( p_this, "dshow-video-output", &val );
Code: Select all
if( val.i_int >= 0 )
Since the value for 'default' is -1, and 0 is a valid input pin?
(If so, the other pin configuration parameters has the same problem also)
I'm not so good at expressing myself in English, so I hope this post wasn't too confusing. ;)