Chromium Code Reviews| Index: webrtc/sdk/objc/Framework/Classes/RTCCameraVideoCapturer.m |
| diff --git a/webrtc/sdk/objc/Framework/Classes/RTCCameraVideoCapturer.m b/webrtc/sdk/objc/Framework/Classes/RTCCameraVideoCapturer.m |
| index 9a0b40f081f32070a7e793bbd8dfb581ede51ec9..1193da8b3b6faa7732778e92e9a52c7bb5189b0d 100644 |
| --- a/webrtc/sdk/objc/Framework/Classes/RTCCameraVideoCapturer.m |
| +++ b/webrtc/sdk/objc/Framework/Classes/RTCCameraVideoCapturer.m |
| @@ -115,12 +115,12 @@ static inline BOOL IsMediaSubTypeSupported(FourCharCode mediaSubType) { |
| - (void)startCaptureWithDevice:(AVCaptureDevice *)device |
| format:(AVCaptureDeviceFormat *)format |
| - fps:(int)fps { |
| + fps:(NSInteger)fps { |
| _willBeRunning = true; |
| [RTCDispatcher |
| dispatchAsyncOnType:RTCDispatcherTypeCaptureSession |
| block:^{ |
| - RTCLogInfo("startCaptureWithDevice %@ @ %d fps", format, fps); |
| + RTCLogInfo("startCaptureWithDevice %@ @ %d fps", format, (int)fps); |
|
magjed_webrtc
2017/05/04 09:48:54
I don't think we are allowed to do C-style casts.
sakal
2017/05/04 14:34:03
Done.
|
| #if TARGET_OS_IPHONE |
| [[UIDevice currentDevice] beginGeneratingDeviceOrientationNotifications]; |
| @@ -360,7 +360,7 @@ static inline BOOL IsMediaSubTypeSupported(FourCharCode mediaSubType) { |
| #pragma mark - Private, called inside capture queue |
| -- (void)updateDeviceCaptureFormat:(AVCaptureDeviceFormat *)format fps:(int)fps { |
| +- (void)updateDeviceCaptureFormat:(AVCaptureDeviceFormat *)format fps:(NSInteger)fps { |
| NSAssert([RTCDispatcher isOnQueueForType:RTCDispatcherTypeCaptureSession], |
| @"updateDeviceCaptureFormat must be called on the capture queue."); |
| @try { |