Skip to content

End recording and start streaming again - bug fix #12534

Merged
Nir-Az merged 3 commits into
realsenseai:developmentfrom
noacoohen:finish_recording_and_start_streaming_again_fix
Dec 24, 2023
Merged

End recording and start streaming again - bug fix #12534
Nir-Az merged 3 commits into
realsenseai:developmentfrom
noacoohen:finish_recording_and_start_streaming_again_fix

Conversation

@noacoohen

@noacoohen noacoohen commented Dec 20, 2023

Copy link
Copy Markdown
Contributor
  • 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

Nir-Az commented Dec 24, 2023

Copy link
Copy Markdown
Collaborator

Tracked by?

@Nir-Az Nir-Az left a comment

Copy link
Copy Markdown
Collaborator

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 realsenseai:development Dec 24, 2023
@Nir-Az

Nir-Az commented Dec 24, 2023

Copy link
Copy Markdown
Collaborator

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