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

Allow passing VideoOptions by value or by reference to new_with_options - Closes #38 #41

Merged
merged 1 commit into from
Aug 29, 2024

Conversation

nick42d
Copy link
Contributor

@nick42d nick42d commented Aug 27, 2024

Follow on from issue #38.

This took a little more work than I was expecting, as I missed that Video stores VideoOptions, therefore we need a new lifetime parameter on Video to make this work. Unfortunately this is a breaking change for anyone storing a Video in a struct (not sure why you would), but I was able to avoid the main one (users passing VideoOptions by value) by relaxing the type signature of Video::new_with_options().

I also removed a redundant clone on the Video::get_options() method, needed to be touched anyway for this change.

@Mithronn Mithronn merged commit f02ce9f into Mithronn:main Aug 29, 2024
1 of 4 checks passed
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