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

fix: Make AVCaptureDevice.sensorOrientation safer #3064

Merged
merged 1 commit into from
Jul 10, 2024

Conversation

mrousavy
Copy link
Owner

What

Makes the getter for sensorOrientation safer by checking if we can set a preset, add the input, and add the output before actually doing it.

This could prevent some crashes with external/continouity cameras.

Changes

Tested on

Related issues

Copy link

vercel bot commented Jul 10, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
react-native-vision-camera ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 10, 2024 10:55am

@mrousavy mrousavy merged commit 9a09260 into main Jul 10, 2024
8 checks passed
@mrousavy mrousavy deleted the fix/sensorOrientation branch July 10, 2024 10:57
@mrousavy
Copy link
Owner Author

This fixes #3048.

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