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

Unified Diff: media/video/capture/mac/video_capture_device_qtkit_mac.h

Issue 464853002: Mac Video Capture: correct to float the erroneous handling of frame rate as int. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 4 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
Index: media/video/capture/mac/video_capture_device_qtkit_mac.h
diff --git a/media/video/capture/mac/video_capture_device_qtkit_mac.h b/media/video/capture/mac/video_capture_device_qtkit_mac.h
index 1ed511b54cece8d24fe06460535367da353d5857..c1af697848818c2e30902c50b8bb687f362bdb76 100644
--- a/media/video/capture/mac/video_capture_device_qtkit_mac.h
+++ b/media/video/capture/mac/video_capture_device_qtkit_mac.h
@@ -24,7 +24,7 @@ class VideoCaptureDeviceMac;
@interface VideoCaptureDeviceQTKit : NSObject<PlatformVideoCapturingMac> {
@private
// Settings.
- int frameRate_;
+ float frameRate_;
NSLock *lock_;
media::VideoCaptureDeviceMac *frameReceiver_;
@@ -58,7 +58,9 @@ class VideoCaptureDeviceMac;
- (BOOL)setCaptureDevice:(NSString*)deviceId;
// Configures the capture properties.
-- (BOOL)setCaptureHeight:(int)height width:(int)width frameRate:(int)frameRate;
+- (BOOL)setCaptureHeight:(int)height
+ width:(int)width
+ frameRate:(float)frameRate;
// Start video capturing. Returns YES on sucess, NO otherwise.
- (BOOL)startCapture;

Powered by Google App Engine
This is Rietveld 408576698