camera: Reset permissions to undecided when closing camera.

Otherwise, the permission-granted event will not fire when reopened.
main
Ryan C. Gordon 2024-02-19 23:51:30 -05:00
parent db8caa029b
commit 6c080717f2
1 changed files with 1 additions and 0 deletions

View File

@ -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;