Skip to content

Commit b046a0a

Browse files
committed
And of course the Mac CameraPlgin doesn't need to use numberWithDouble: for
camera dimensions.
1 parent 582b86e commit b046a0a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

platforms/iOS/plugins/CameraPlugin/AVFoundationVideoGrabber.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -159,8 +159,8 @@ -(SqueakVideoGrabber*)initCapture:(int)deviceNum
159159
if (preset) {
160160
// Set the video output to store frame in BGRA (It is supposed to be faster)
161161
NSDictionary *outputSettings = [NSDictionary dictionaryWithObjectsAndKeys:
162-
[NSNumber numberWithDouble: width], (id)kCVPixelBufferWidthKey,
163-
[NSNumber numberWithDouble: height], (id)kCVPixelBufferHeightKey,
162+
[NSNumber numberWithInt: width], (id)kCVPixelBufferWidthKey,
163+
[NSNumber numberWithInt: height], (id)kCVPixelBufferHeightKey,
164164
[NSNumber numberWithInt: kCVPixelFormatType_32BGRA], (id)kCVPixelBufferPixelFormatTypeKey,
165165
nil];
166166
[captureOutput setVideoSettings:outputSettings];

0 commit comments

Comments
 (0)