#13 dc1394_find_cameras

closed-out-of-date
None
5
2005-10-28
2005-07-31
Anonymous
No

I found two problems trying to run coriander with
3 ieee1394 cameras hooked up to a Belkin hub
which is then hooked up to my PC.

The first is a segmentation fault due to accessing
an invalid cameras[i] pointer in dc1394_find_camera.
This is just a small bug.

The other problem, however, is strange. In the loop
over interfaces and nodes, the last node in my setup
happens to be the Belkin hub. The hub fails to tell
dc1394 whether it's a camera or not, so we get the
error code DC1394_FAILURE when trying to talk to
it. But if I just allow dc1394_find_cameras to continue
with whatever cameras it can find, even when some
nodes fail, everything works great. (My configuration
always worked before with older versions of libdc1394.)

I have attached a patch that fixes these two problems,
though I'm not sure about the correctness of ignoring
the DC1394_FAILURE from the hub.

Matthew Dailey
Sirindhorn International Institute of Technology
Thammasat University, Thailand
mdailey@siit.tu.ac.th

Discussion

  • Patch to dc1394_control.c

     
    • assigned_to: nobody --> ddouxchamps
    • status: open --> closed-out-of-date
     
  • Logged In: YES
    user_id=130585

    This fix has already been implemented.