camera: Initialize AVCaptureVideoDataOutput.videoSettings to zero
AVCaptureVideoDataOutput.videoSettings should be initialized to zero to
receive frames matching the device format.
See: 1389945
-videosettings?language=objc
This commit is contained in:
parent
14f7eebac6
commit
5387022855
1 changed files with 2 additions and 0 deletions
|
@ -308,6 +308,8 @@ static int COREMEDIA_OpenDevice(SDL_CameraDevice *device, const SDL_CameraSpec *
|
||||||
return SDL_SetError("Cannot create AVCaptureVideoDataOutput");
|
return SDL_SetError("Cannot create AVCaptureVideoDataOutput");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
output.videoSettings = @{};
|
||||||
|
|
||||||
char threadname[64];
|
char threadname[64];
|
||||||
SDL_GetCameraThreadName(device, threadname, sizeof (threadname));
|
SDL_GetCameraThreadName(device, threadname, sizeof (threadname));
|
||||||
dispatch_queue_t queue = dispatch_queue_create(threadname, NULL);
|
dispatch_queue_t queue = dispatch_queue_create(threadname, NULL);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue