mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-02-13 07:13:35 +00:00
camera: clear the spec when closing, so re-opening can probe again
This commit is contained in:
committed by
Sam Lantinga
parent
ee5f5c9172
commit
8a7beca122
@@ -278,6 +278,8 @@ static void ClosePhysicalCamera(SDL_Camera *device)
|
||||
|
||||
device->base_timestamp = 0;
|
||||
device->adjust_timestamp = 0;
|
||||
|
||||
SDL_zero(device->spec);
|
||||
}
|
||||
|
||||
// Don't hold the device lock when calling this, as we may destroy the device!
|
||||
|
||||
Reference in New Issue
Block a user