Bug in dshow.cpp? (unable to set dshow-video-input=0)

Microsoft Windows specific usage questions
Forum rules
Please post only Windows specific questions in this forum category. If you don't know where to post, please read the different forums' rules. Thanks.
sneeze

Bug in dshow.cpp? (unable to set dshow-video-input=0)

Postby sneeze » 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

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 );
Shouldn't the test be

Code: Select all

if( val.i_int >= 0 )
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. ;)

dionoea
Cone Master
Cone Master
Posts: 5157
Joined: 03 Dec 2003 23:09
Location: Paris, France

Postby dionoea » 07 Jun 2006 23:08

Indeed ... were you able to test the change ?
Antoine Cellerier
dionoea
(Please do not use private messages for support questions)

sneeze

Postby sneeze » 08 Jun 2006 21:31

Yes, I got around to build vlc on my own last night, and changing the dshow-video-input 'if'-statement fixed my problem.

I guess the related parameters (dshow-video-output, dshow-audio-input/output) needs the same change.

On a side note, I was not able to checkout VLC from svn though, tried both with cygwin svn and turoiseSVN, and got the same error "Invalid diff stream: insn 932 cannot be decoded". Last file I could checkout was wxwidgets.cpp. Dunno what whats wrong though :/

dionoea
Cone Master
Cone Master
Posts: 5157
Joined: 03 Dec 2003 23:09
Location: Paris, France

Postby dionoea » 09 Jun 2006 22:45

Ok, i commited the change in VLC trunk (https://trac.videolan.org/vlc/changeset/15856) I also changed the 3 next tests.

About your SVN problem, i don't have a clue about what the problem might be.
Antoine Cellerier
dionoea
(Please do not use private messages for support questions)


Return to “VLC media player for Windows Troubleshooting”

Who is online

Users browsing this forum: Bing [Bot] and 60 guests