SDL: camera: Initialize AVCaptureVideoDataOutput.videoSettings to zero

From 5387022855ed73c95af6af8aada101f538c02baf Mon Sep 17 00:00:00 2001
From: Hunter Kvalevog <[EMAIL REDACTED]>
Date: Tue, 4 Jun 2024 17:38:59 -0500
Subject: [PATCH] camera: Initialize AVCaptureVideoDataOutput.videoSettings to
 zero

AVCaptureVideoDataOutput.videoSettings should be initialized to zero to
receive frames matching the device format.

See: https://developer.apple.com/documentation/avfoundation/avcapturevideodataoutput/1389945-videosettings?language=objc
---
 src/camera/coremedia/SDL_camera_coremedia.m | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/camera/coremedia/SDL_camera_coremedia.m b/src/camera/coremedia/SDL_camera_coremedia.m
index b946153d3c010..48ddb4c460bf6 100644
--- a/src/camera/coremedia/SDL_camera_coremedia.m
+++ b/src/camera/coremedia/SDL_camera_coremedia.m
@@ -308,6 +308,8 @@ static int COREMEDIA_OpenDevice(SDL_CameraDevice *device, const SDL_CameraSpec *
         return SDL_SetError("Cannot create AVCaptureVideoDataOutput");
     }
 
+    output.videoSettings = @{};
+
     char threadname[64];
     SDL_GetCameraThreadName(device, threadname, sizeof (threadname));
     dispatch_queue_t queue = dispatch_queue_create(threadname, NULL);