| Index: webrtc/examples/objc/AppRTCMobile/ARDCaptureController.m
|
| diff --git a/webrtc/examples/objc/AppRTCMobile/ARDCaptureController.m b/webrtc/examples/objc/AppRTCMobile/ARDCaptureController.m
|
| index 328c422e5f916cb57a6706314afaf004172e37cb..da6a37a8ff9d8a317bccc8b0c1831eee82bc097f 100644
|
| --- a/webrtc/examples/objc/AppRTCMobile/ARDCaptureController.m
|
| +++ b/webrtc/examples/objc/AppRTCMobile/ARDCaptureController.m
|
| @@ -34,7 +34,7 @@
|
| _usingFrontCamera ? AVCaptureDevicePositionFront : AVCaptureDevicePositionBack;
|
| AVCaptureDevice *device = [self findDeviceForPosition:position];
|
| AVCaptureDeviceFormat *format = [self selectFormatForDevice:device];
|
| - int fps = [self selectFpsForFormat:format];
|
| + NSInteger fps = [self selectFpsForFormat:format];
|
|
|
| [_capturer startCaptureWithDevice:device format:format fps:fps];
|
| }
|
| @@ -81,7 +81,7 @@
|
| return selectedFormat;
|
| }
|
|
|
| -- (int)selectFpsForFormat:(AVCaptureDeviceFormat *)format {
|
| +- (NSInteger)selectFpsForFormat:(AVCaptureDeviceFormat *)format {
|
| Float64 maxFramerate = 0;
|
| for (AVFrameRateRange *fpsRange in format.videoSupportedFrameRateRanges) {
|
| maxFramerate = fmax(maxFramerate, fpsRange.maxFrameRate);
|
|
|