فهرست منبع

camera: Reset permissions to undecided when closing camera.

Otherwise, the permission-granted event will not fire when reopened.
Ryan C. Gordon 1 سال پیش
والد
کامیت
6c080717f2
1فایلهای تغییر یافته به همراه1 افزوده شده و 0 حذف شده
  1. 1 0
      src/camera/SDL_camera.c

+ 1 - 0
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;