Skip to content

Conversation

@xiaoqiangwang
Copy link

  • It destroys the stream object before camera object, because the ArvStream holds reference to its parent ArvDevice object. Without destroying stream object first, the device object will not be properly destroyed.
  • Refresh device list before connecting.

These changes have no improvement over its current functionality but prepare the code if AravisProject/aravis#831 will be used.

@xiaoqiangwang xiaoqiangwang marked this pull request as draft October 23, 2023 16:35

printf("ADAravis: Stopping %s... ", pPvt->portName);
arv_camera_stop_acquisition(cam, err.get());
arv_camera_stop_acquisition(pPvt->camera, err.get());
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

On a general note, passing the error parameter without checking if it NULL first can lead to errors from the Aravis library. I need to check how this is handled elsewhere, but without that, it feels like there's maybe something missing

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants