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

Use the correct cacheKey of local files for AVAssetImageDataProvider #2158

Merged
merged 2 commits into from
Oct 27, 2023

Conversation

onevcat
Copy link
Owner

@onevcat onevcat commented Oct 27, 2023

In #1825, we fixed an issue that the cache does not work for local files when debugging: the reason was Xcode is trying to copy the app to a new sandbox location when debugging. So the resources inside the app bundle has a different local file URL.

In that issue, we fixed the cases for local images, but not yet for the AVAssetImageDataProvider, which still used the plain absoluteString as the cache key. Here we switched to use the url.cacheKey, which also considering the sandbox changing into account.

This should fix #2002

@onevcat onevcat merged commit aa89c25 into master Oct 27, 2023
8 checks passed
@onevcat onevcat deleted the fix/local-file-cache-key-for-avasset branch October 27, 2023 14:06
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.

1 participant