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

Specify nullability for drop-in compatibility from Swift #98

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

samsonjs
Copy link

Before this change SDAVAssetExportSession was not actually a drop-in replacement for AVAssetExportSession when called from Swift.

One concession I made is that the initializer return values are nullable even though we don't ever return nil, purely for compatibility with AVAssetExportSession. Given other differences in the initializer method signature maybe this isn't the right call. It's certainly open to debate.

Before this change SDAVAssetExportSession was not actually a drop-in
replacement for AVAssetExportSession when called from Swift. One
concession is that the initializer return values are nullable even
though we don't ever return nil, purely for compatibility with
AVAssetExportSession.
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