Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Aravis fixes #26

Draft
wants to merge 3 commits into
base: master
Choose a base branch
from
Draft

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