Skip to content

AVFoundation: fix camera authorization request - #15517

Merged
opencv-pushbot merged 2 commits into
opencv:3.4from
mshabunin:fix-osx-avfoundation-auth
Sep 16, 2019
Merged

opencv-pushbot merged 2 commits into
opencv:3.4from
mshabunin:fix-osx-avfoundation-auth

Conversation

@mshabunin

@mshabunin mshabunin commented Sep 13, 2019 •

Copy link
Copy Markdown
Contributor

related #14267
related #14278

This pullrequest changes

Authorization request being sent does can not result in message because of application exit (e.g. example_cpp_videocapture_camera). Thus added main run loop spin with small delay to make sure UI performs request.

Added an environment configuration parameter (OPENCV_AVFOUNDATION_SKIP_AUTH) to skip authorization request in OpenCV. Authorization check is still performed.

Backported runtime OSX check from master branch. It should've been done in #14500, but slipped away for some reason.

cc @jeroen

allow_multiple_commits=1

@alalek alalek left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Looks good to me 👍

@opencv-pushbot
opencv-pushbot merged commit f10fce9 into opencv:3.4 Sep 16, 2019
@alalek alalek mentioned this pull request Sep 20, 2019
@mshabunin
mshabunin deleted the fix-osx-avfoundation-auth branch July 14, 2020 17:16
SavyaSanchi-Sharma pushed a commit to SavyaSanchi-Sharma/opencv that referenced this pull request Jul 30, 2026
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.

3 participants