Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(945)

Unified Diff: webrtc/examples/objc/AppRTCMobile/ARDCaptureController.m

Issue 2862493003: Make fps NSInteger in startCaptureWithDevice. (Closed)
Patch Set: Print NSInteger directly. Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | webrtc/sdk/objc/Framework/Classes/RTCCameraVideoCapturer.m » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
« no previous file with comments | « no previous file | webrtc/sdk/objc/Framework/Classes/RTCCameraVideoCapturer.m » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698