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

End recording and start streaming again - bug fix #12534

Conversation

noacoohen
Copy link
Contributor

@noacoohen noacoohen commented Dec 20, 2023

  • After recording is finished record_device destructor is called. The vector of shared_ptr that points to each record_sensor is cleared but record_sensor isn't destructed.
    It is caused because the lambda function in record_device::create_record_sensors calls recording_sensor (shared_ptrlibrealsense::record_sensor) without using weak_ptr.

  • removed paramaters that are not used inside the function.

Tracked by RSDEV-1226

@noacoohen noacoohen requested a review from Nir-Az December 20, 2023 14:08
@Nir-Az
Copy link
Collaborator

Nir-Az commented Dec 24, 2023

Tracked by?

Copy link
Collaborator

@Nir-Az Nir-Az left a comment

Choose a reason for hiding this comment

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

Looks great!
I will merge but please add the ticket to the description

@Nir-Az Nir-Az merged commit 77df713 into IntelRealSense:development Dec 24, 2023
17 checks passed
@Nir-Az
Copy link
Collaborator

Nir-Az commented Dec 24, 2023

BTW, do you think we can add a UT for this?
That fail before the fix and pass after it?

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