mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-10-01 23:48:29 +00:00
camera: Reset permissions to undecided when closing camera.
Otherwise, the permission-granted event will not fire when reopened.
This commit is contained in:
@@ -261,6 +261,7 @@ static void ClosePhysicalCameraDevice(SDL_CameraDevice *device)
|
|||||||
|
|
||||||
SDL_aligned_free(device->zombie_pixels);
|
SDL_aligned_free(device->zombie_pixels);
|
||||||
|
|
||||||
|
device->permission = 0;
|
||||||
device->zombie_pixels = NULL;
|
device->zombie_pixels = NULL;
|
||||||
device->filled_output_surfaces.next = NULL;
|
device->filled_output_surfaces.next = NULL;
|
||||||
device->empty_output_surfaces.next = NULL;
|
device->empty_output_surfaces.next = NULL;
|
||||||
|
Reference in New Issue
Block a user