Index: media/video/capture/mac/video_capture_device_mac.mm |
diff --git a/media/video/capture/mac/video_capture_device_mac.mm b/media/video/capture/mac/video_capture_device_mac.mm |
index 1a65e990910aac11cf50c43983ec3d117ac30bf8..56bcefa611cd25684f66e2d313af5f9096e01a0d 100644 |
--- a/media/video/capture/mac/video_capture_device_mac.mm |
+++ b/media/video/capture/mac/video_capture_device_mac.mm |
@@ -189,7 +189,8 @@ void VideoCaptureDeviceMac::AllocateAndStart( |
// QTKit API can scale captured frame to any size requested, which would lead |
// to undesired aspect ratio changes. Try to open the camera with a known |
// supported format and let the client crop/pad the captured frames. |
- GetBestMatchSupportedResolution(&width, &height); |
+ if (!AVFoundationGlue::IsAVFoundationSupported()) |
+ GetBestMatchSupportedResolution(&width, &height); |
client_ = client.Pass(); |
NSString* deviceId = |