SDL icon indicating copy to clipboard operation
SDL copied to clipboard

[Camera]: SDL_GetCameraPermissionState returns 0 if pipewire backend is being used

Open olekolek1000 opened this issue 8 months ago • 2 comments

According to the documentation: SDL_GetCameraPermissionState

 * This function can be used to check the status of that approval. It will
 * return 0 if still waiting for user response, 1 if the camera is approved
 * for use, and -1 if the user denied access.

(*more text*)

 * \returns -1 if user denied access to the camera, 1 if user approved access,
 *          0 if no decision has been made yet.

On v4l2 we don't have any camera approval window (not sure about pipewire), but this function still returns 0 forever, instead of 1, without showing up anything to the user.

Tested on the newest commit, #9a4fc81

image

olekolek1000 avatar Jun 07 '24 09:06 olekolek1000