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

Remove static state from MP4/QuickTime handlers #438

Merged
merged 1 commit into from
Sep 15, 2019
Merged

Conversation

drewnoakes
Copy link
Owner

These static fields were not threadsafe and create invalid data in concurrent environments.

There may be a better design for this, but for now these new context classes just move shared state to the stack.

Fixes #421.

These static fields are not threadsafe and create invalid data in
concurrent environments.

There may be a better design for this, but for now these new context
classes just move shared state to the stack.

Fixes #421.
Copy link
Collaborator

@kwhopper kwhopper left a comment

Choose a reason for hiding this comment

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

Seems fine to me. If you haven't, a run through the images library would be good before merging. Thanks!

Copy link
Collaborator

@payton payton left a comment

Choose a reason for hiding this comment

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

+1 ^^^

LGTM! Thanks for fixing this.

@drewnoakes
Copy link
Owner Author

drewnoakes commented Sep 15, 2019

I ran it over the images and there is no diff. However we don't have very many avi/mov files. I'm pretty sure this fixes the problem correctly. The design could definitely be improved. I just wanted the bug fixed.

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

Successfully merging this pull request may close these issues.

QuickTime/MP4 reading not thread safe
3 participants