SDL: camera: Reset permissions to undecided when closing camera.

From 6c080717f28b050b5407fa7004ef2be2772731cb Mon Sep 17 00:00:00 2001
From: "Ryan C. Gordon" <[EMAIL REDACTED]>
Date: Mon, 19 Feb 2024 23:51:30 -0500
Subject: [PATCH] camera: Reset permissions to undecided when closing camera.

Otherwise, the permission-granted event will not fire when reopened.
---
 src/camera/SDL_camera.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/camera/SDL_camera.c b/src/camera/SDL_camera.c
index 8710be864183..f0e58fc16ae2 100644
--- a/src/camera/SDL_camera.c
+++ b/src/camera/SDL_camera.c
@@ -261,6 +261,7 @@ static void ClosePhysicalCameraDevice(SDL_CameraDevice *device)
 
     SDL_aligned_free(device->zombie_pixels);
 
+    device->permission = 0;
     device->zombie_pixels = NULL;
     device->filled_output_surfaces.next = NULL;
     device->empty_output_surfaces.next = NULL;