Skip to content

Commit

Permalink
Merge pull request #668 from lxgr/lxgr/fix-camera-aspect
Browse files Browse the repository at this point in the history
Fix macOS camera aspect ratio
  • Loading branch information
LIJI32 authored Nov 3, 2024
2 parents 52d5169 + 207dc99 commit 6efefab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Cocoa/Document.m
Original file line number Diff line number Diff line change
Expand Up @@ -2067,7 +2067,7 @@ - (void)cameraRequestUpdate
NSError *error;
AVCaptureDevice *device = [AVCaptureDevice defaultDeviceWithMediaType: AVMediaTypeVideo];
AVCaptureDeviceInput *input = [AVCaptureDeviceInput deviceInputWithDevice: device error: &error];
CMVideoDimensions dimensions = CMVideoFormatDescriptionGetDimensions([[[device formats] lastObject] formatDescription]);
CMVideoDimensions dimensions = CMVideoFormatDescriptionGetDimensions([[device activeFormat] formatDescription]);

if (!input) {
GB_camera_updated(&_gb);
Expand Down

0 comments on commit 6efefab

Please sign in to comment.