Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#8 Fixes device minor bug (req. for pchdtv interoperability.)

open
nobody
None
5
2004-01-25
2004-01-25
No

ivtv uses a loop when registering device nodes for each
stream, but it only works correctly for the first
stream. because the devices numbers are checked against
IVTV_V4L2_MAX_MINOR, which is 15, while the second
stream first attempts to register to 32, and the third
first attemprs to get 224. If these are already taken,
say by another instance of the ivtv driver or a pchdtv
driver, then it does not try 33 and 225, resp. This is
because it fails the check against being less than or
equal to IVTV_V4L2_MAX_MINOR.

This patch fixes this by comparing only the first
stream against this define, and it also makes the debug
messages slightly more informative by listing the
stream it attempted to register in addition to the
device minor.

This patch is against version 0.1.9

Discussion

  • device minor fix

     
    Attachments