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

Update post synchronization from range-based to index-based for loop closes #3163 #3261

Merged
merged 2 commits into from
May 20, 2024

Conversation

engbergandreas
Copy link
Member

closes #3163 and #3257

The issue is that as we are iterating the syncables in post-synchronization the video player adds a new syncable to the syncEngine which invalidates the range-based for loop due to vector capacity change. Either we go with this solution of changing it to an index-based for loop (should probably change it in e.g., pre-synchronization as well?) or we add the syncable to some queue which we process at the next frame for example.

@engbergandreas engbergandreas linked an issue May 16, 2024 that may be closed by this pull request
Copy link
Member

@alexanderbock alexanderbock left a comment

Choose a reason for hiding this comment

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

For symmetry it would be good to do it in the presync aswell. I'd also say to add a comment here explaining why we use a raw loop instead or else there is a danger of someone changing it back later and reintroducing the bug

@engbergandreas engbergandreas merged commit 944e345 into master May 20, 2024
@engbergandreas engbergandreas deleted the issue/3163-drag-drop-mp4-crash branch May 20, 2024 13:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants