-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(macos): Prevent indefinite hanging if screen capture is not granted
Currently, if Sunshine has not yet been granted the screen capture permission, the program simply hangs indefinitely on startup when it attempts to probe for usable encoders. This is not desirable because it prevents testing and using all of the parts of Sunshine that do not require the screen capture permission. With this patch, the encoder probing will simply fail instead of hanging indefinitely if Sunshine does not yet have the screen capture permission. Note that Sunshine already prints out an error message telling the user that the screen capture permission is needed. The bug is that Sunshine currently indefinitely hangs shortly after printing that message.
- Loading branch information
Showing
3 changed files
with
25 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters