Pārlūkot izejas kodu

camera: clear the spec when closing, so re-opening can probe again

Anonymous Maarten 1 mēnesi atpakaļ
vecāks
revīzija
8a7beca122
1 mainītis faili ar 2 papildinājumiem un 0 dzēšanām
  1. 2 0
      src/camera/SDL_camera.c

+ 2 - 0
src/camera/SDL_camera.c

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